User Management API

/api/space/user-management/profiles/{id}/roles

The following operations are supported on this resource:

GET /api/space/user-management/profiles/{id}/roles (v1)


This API retrieves all the roles in a particular remote profile.

Access Control

The following capabilities are required to access this API:
"ReadProfile"


Example Usage

GET /api/space/user-management/profiles/{id}/roles


Parameters

NameTypeURI TypeDescriptionRequired
idintPathThe ID of the remote profile for which all roles will be retrieved. Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.user-management.roles-ref+xml;version=1
    application/vnd.net.juniper.space.user-management.roles-ref+json;version=1


  • Sample Output XML:
    <roles size="2" uri="/api/space/user-management/profiles/458785/roles">
     <role uri="/api/space/user-management/profiles/458785/roles/65696"   href="/api/space/user-management/roles/65696" key="65696">
      <id>65696</id>
      <name>userAdmin</name>
     </role>
     <role uri="/api/space/user-management/profiles/458785/roles/65699"   href="/api/space/user-management/roles/65699" key="65699">
      <id>65699</id>
      <name>systemAdmin</name>
     </role>
    </roles>


  • Sample Output JSON:
    {
     "roles":{
      "@size":"2",
      "@uri":"/api/space/user-management/profiles/458785/roles",
      "role":[
       {
        "@uri":"/api/space/user-management/profiles/458785/roles/65696",
        "@href":"/api/space/user-management/roles/65696",
        "@key":"65696",
        "id":65696,
        "name":"userAdmin"
       },
       {
        "@uri":"/api/space/user-management/profiles/458785/roles/65699",
        "@href":"/api/space/user-management/roles/65699",
        "@key":"65699",
        "id":65699,
        "name":"systemAdmin"
       }
      ]
     }
    }