Skip to content

Subadmin can create newgroup using userprovisioning API #31283

@paurakhsharma

Description

@paurakhsharma

Steps to reproduce

  1. Create a user subadmin and make him subadmin of a group new-group

  2. perform curl http://subadmin:123456@example.com/ocs/v1.php/cloud/groups -d groupid="newgroup"

  3. and see there is status code is 100 in API-v1 and 200 in API-v2

  4. and see there is new group newgroup

Expected behaviour

Subadmin should not be able to create new group

Actual behaviour

Subadmin can create new group

Server configuration

Operating system: 17.10

Web server: Apache

Database: MySQL

PHP version: 7.1

ownCloud version: (see ownCloud admin page) 10.1.0

Where did you install ownCloud from: git

Log in terminal

When I ran

curl http://subadmin:123456@localhost:80/core/ocs/v1.php/cloud/groups -d groupid="newgroup"

I got

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message/>
 </meta>
 <data/>
</ocs>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions