Listing the existing roles

This section explains how to list existing roles to determine the operating privileges of users.



Execute the following API:
$ curl -X GET -Ss $IDENTITY/v3/roles?domain_id=$DOMAIN_ID \
-H "X-Auth-Token:$OS_AUTH_TOKEN" -H "Content-Type:application/json" | \
jq '.roles[] |select(.policy_role != true)'

The following response is output: Refer to the Service Specification for details on the privileges of each preset role.

{
  "id": "0739580a550d4a0f9c78f45a9f038c05",
  "links": {
    "self": "http://identity.cloud.global.fujitsu.com/v3/roles/0739580a550d4a0f9c78f45a9f038c05"
  },
  "name": "cpf_systemowner"
}
{
  "id": "20e572b88c544606863548f8abd4ff53",
  "links": {
    "self": "http://identity.cloud.global.fujitsu.com/v3/roles/20e572b88c544606863548f8abd4ff53"
  },
  "name": "cpf_operator"
}
{
  "id": "3af119c426a742999e7890f6d1f70b36",
  "links": {
    "self": "http://identity.cloud.global.fujitsu.com/v3/roles/3af119c426a742999e7890f6d1f70b36"
  },
  "name": "cpf_admin"
}
{
  "id": "970ea0105b514c16828626fe4dd50960",
  "links": {
    "self": "http://identity.cloud.global.fujitsu.com/v3/roles/970ea0105b514c16828626fe4dd50960"
  },
  "name": "cpf_observer"
}
{
  "id": "9fe2ff9ee4384b1894a90878d3e92bab",
  "links": {
    "self": "http://identity.cloud.global.fujitsu.com/v3/roles/9fe2ff9ee4384b1894a90878d3e92bab"
  },
  "name": "_member_"
}
{
  "id": "df7d043a09d34a7c9e2bad15926ee097",
  "links": {
    "self": "http://identity.cloud.global.fujitsu.com/v3/roles/df7d043a09d34a7c9e2bad15926ee097"
  },
  "name": "cpf_org_manager"
}