User Roles API
Listing User Roles
|
The following is the response from the above *GET* request and the actual response will depend upon the information given by you:
|
|
JSON Example
|
|
Adding Roles
|
Note |
To get the roles object ID, use this URI: |
|
|
The following is the response from the above *POST* request and the actual response will depend upon the information given by you:
|
JSON Example
|
The following is the response from the above *POST* request and the actual response will depend upon the information given by you:
|
Delete Role of User
|
The following is the response from the above *DELETE* request and the actual response will depend upon the information given by you:
|
JSON Example
|
|
Explanation of Data Fields
Parameter | Operations | Data Type | Comments |
---|---|---|---|
ObjectId | String(36) | Read Only | A globally unique, system-generated identifier for a particular role of user |
UserId | String | Read Only | URI of the User object (subject) to which this role is assigned. |
UserObjectId | String(36) | Read Only | The unique identifier of the User object (subject) to which this role is assigned. |
RoleObjectId | String(36) | Read/Write | The unique identifier of the Role object that specifies the privileges to be granted to the subject, for the target. For example, the role could be a "Technician." |
RoleName | String(64) | Read Only | The name of the role. |
RoleURI | String | Read Only | URI of the particular role |
Alias | String(64) | Read Only | The alias of the user |