Sonatype Security REST API

/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

Input Payload

element consumeable content type(s)
user-to-role (XML)
  • application/xml
  • application/json
description
REST Request object to assign a roles to a user. Typically used when assigning roles to a user NOT managed by this system.

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

Output Payload

element produceable content type(s)
user-to-role (XML)
  • application/xml
  • application/json
description
(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

/user_to_roles/{sourceId}/{userId}

Home

REST Endpoints

XML Data Elements

XML Data Types