...
Code Block | ||
---|---|---|
| ||
{ "username": "alice@example.org", "displayName": "Alice", "locale": "nl", "attributes": [ { "name": "urn:mace:dir:attribute-def:displayName", "values": [ "Alice" ] }, { "name": "urn:mace:dir:attribute-def:mail", "values": [ "alice@example.org" ] }, { "name": "urn:mace:dir:attribute-def:eduPersonAffiliation", "values": [ "member", "student" ] }, { "name": "urn:mace:dir:attribute-def:eduPersonPrincipalName", "values": [ "alice@example.org" ] } ], "roles": [ "ROLE_MEMBER", "ROLE_STUDENT" ] } |
Response code
200 (OK), 404 (Not Found) if the user does not exist
/users
Method: POST
Description: Creates a user with the specified username.
...
Code Block | ||
---|---|---|
| ||
{ "synchronization": { "id": 1, "type": "ews", "username": "alice@example.org", "description": "alice@bob.test", "enabled": true, "status": "OK", "lastResync": 1355320800000 } } |
Response code: 200 OK, 422 Unprocessable Entity (username does not exist or synchronization type is not known), 550 Permission Denied (access not granted to mailbox)
/synchronizations/{id}
Method: DELETE
...