/api/space/user-management/users/{uid}/roles/{rid}

The following operations are supported on this resource:

  • GET - Get a single role for a user
  • DELETE - Unassign a role from a user
GET /users/{uid}/roles/{rid} Version 1

Get a single role for a user.

Sample Usage

GET /users/{uid}/roles/{rid}


  • Parameters:
    Name Type URI Type Description Required
    uid int Path The ID of the user whose role is to be retrieved. Y
    rid int Path The ID of the role for which information is to be retrieved. Y
  • Sample Output XML:
    <role key="65593" uri="/api/space/user-management/users/65859/roles/65593"
           href= "/api/space/user-management/roles/65593">
        <name>superAdmin</name>
        <title>Super Administrator</title>
    </role>

  • Sample Output JSON:
    {
      "role": {
          "@key":"65593",
          "@uri": "/api/space/user-management/users/65859/roles/65593",
          "@href": "/api/space/user-management/roles/65593",
          "name":"superAdmin",
          "title":"Super Administrator"
      }
    }

  • Access Control

    The following capabilities are required to access this API: ReadRole

    DELETE /users/{uid}/roles/{rid} Version 1

    Unassign a role from a user.

    Sample Usage

    DELETE /users/{uid}/roles/{rid}


    • Parameters:
      Name Type URI Type Description Required
      uid int Path The user ID of the user for which the role is to be deleted. Y
      rid int Path The role ID of the role to be deleted from the user. Y

    Access Control

    The following capabilities are required to access this API: ModifyUser