The status code can be any of the following numbers:
Authenticated Create a new user on the CoreDrive server.
Syntax
Request Path | Method | Content Type |
---|---|---|
ocs/v1.php/cloud/users | POST | text/plain |
Argument | Type | Description |
---|---|---|
groups | array | Groups to add the user to (optional). Groups must already exist. |
password | string | The required password for the new user. |
userid | string | The required username for the new user. |
Authenticated Retrieves a list of users from the CoreTecnologia server.
Syntax
Request Path | Method | Content Type |
---|---|---|
ocs/v1.php/cloud/users | GET | text/plain |
Argument | Type | Description |
---|---|---|
search | string | optional search string |
limit | int | optional limit value |
offset | int | optional offset value |
Authenticated Retrieves information about a single user.
Syntax
Request Path | Method | Content Type |
---|---|---|
Syntax: ocs/v1.php/cloud/users/{userid} | GET | text/plain |
Argument | Type | Description |
---|---|---|
userid | int | Id of the user to retrieve |
Authenticated Edits attributes related to a user. Users are able to edit email, displayname and password; admins can also edit the quota value. Exactly one attribute can be set or modified at a time. To set or modify multiple attributes then multiple calls must be made.
Syntax
Request Path | Method | Content Type |
---|---|---|
ocs/v1.php/cloud/users/{userid} | PUT | text/plain |
Argument | Type | Description |
---|---|---|
key | string | the field to edit (email, quota, display, password) |
value | mixed | the new value for the field |
Authenticated Deletes a user from the ownCloud server.
Syntax
Request Path | Method | Content Type |
---|---|---|
ocs/v1.php/cloud/users/{userid} | DELETE | text/plain |
Argument | Type | Description |
---|---|---|
userid | string | The id of the user to delete |