How can we help?

Searching:

0 results found

Roles/Get (List)

GET odata/roles

Description

Gets the list of Roles. This endpoint does not return the Tasks or Endpoints associated with a Role. To get the Tasks associated with a specific Role, see Roles/Get/[roleId]/Tasks. To get the Endpoints associated with a specific Role, see Roles/Get/[roleId]/Endpoints.

See the following for request and response details ‒

See Also

Request ‒ Roles/Get (List)

Example JSON Roles/Get (List) Request

curl -X GET \

http://api.dev.axonize.com/odata/Roles/ \

-H ‘Accept: application/json, text/plain, */*’ \

-H ‘Accept-Language: en-US,en;q=0.9’ \

-H ‘AppId: 289a7624-c590-4b4c-b15a-7801d8902ce9’ \

-H ‘Content-Type: application/json’ \

-H ‘cache-control: no-cache’ \

Response ‒ Roles/Get (List)

For the requested Role, the response provides the properties in Request ‒ Roles/Post and Response ‒ Roles/Post. The response that is returned also contains the following properties –

Property Type Description
modifiedDate Date The time when the Role was updated.
modifiedBy String The user id that last updated the Role.
createdBy String The user id that created the Role.

Example JSON Roles/Get (List) Response

Status 200 – OK

{

“@odata.context”: “http://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Roles”,

“value”: [

{

“name”: “projectmanager”,

“displayName”: “msg_role_project_manager”,

“isShared”: null,

“taskIds”: [],

“id”: “1E17A975-3C39-46BB-B982-98818EF7C37A”,

“appId”: null,

“creationDate”: null

},

{

“name”: “tenanttechsupport”,

“displayName”: “msg_role_tenant_tech_support”,

“isShared”: null,

“taskIds”: [],

“id”: “8DFBDE35-22F4-4FEF-A136-557575D576D5”,

“appId”: null,

“creationDate”: null

} ]

}