REST API: Permissions in a role and the target tables.

sahilkhanna
Tera Expert

I have gotten the roles assigned to a user.

 

{{instanceUrl}}/api/now/ui/impersonate/role
{
  "result": {
    "activeRoles": [
      ...,
      "sn_customerservice_agent",
      "sn_customerservice.contact_manager",
      "sn_customerservice.csm_workspace_user",
      ...
    ],
    "roles": [
      
    ]
  }
}

 

 

Are there any REST APIs to get the below information for each role E.g. sn_customerservice.contact_manager?

  • Permissions in the role i.e. view, create, update, and delete (all or few).
  • The tables that the role applies to. E.g. customer_contact
1 ACCEPTED SOLUTION

JenniferRah
Mega Sage

I don't believe there is an API for that, but you could possibly write a scripted REST API to do it.

View solution in original post

1 REPLY 1

JenniferRah
Mega Sage

I don't believe there is an API for that, but you could possibly write a scripted REST API to do it.