/user_to_roles/{sourceId}/{userId}

Mount Point: /service/local/user_to_roles/{sourceId}/{userId}

The following operations are supported on this resource:

PUT

Sets a users roles.

Parameters

name description type default
sourceId The Id of the source. A source specifies where the users/roles came from, for example the source Id of 'LDAP' identifies the users/roles as coming from an LDAP source. path
userId The Id of the user. path

Request Body

element: user-to-role
media types: application/xml
application/json

(no documentation provided)

GET

Gets a users roles.

Parameters

name description type default
sourceId The Id of the source. A source specifies where the users/roles came from, for example the source Id of 'LDAP' identifies the users/roles as coming from an LDAP source. path
userId The Id of the user. path

Response Body

element: user-to-role
media types: application/xml
application/json

(no documentation provided)

DELETE

Removes all roles from a user.

Parameters

name description type default
sourceId The Id of the source. A source specifies where the users/roles came from, for example the source Id of 'LDAP' identifies the users/roles as coming from an LDAP source. path
userId The Id of the user. path