Assigning Roles to Portal
Important
As an Administrator, you’ll need to assign the role associated with the application integration to every ServiceNow user who will use the IdentityIQ with ServiceNow Service Catalog to request access.
To perform this as a bulk operation and add this role to all ServiceNow users at once, you can run the following script:
var gr = new GlideRecord("sys_user");
gr.query();
while(gr.next()) {
if (gr.accumulated_roles.toString().indexOf(",x_sap_integration.user,") == -1) {
gr.roles = gr.roles + ", x_sap_integration.user ";
gr.update();
}
}
You can also modify this script to assign the role to a subset of ServiceNow users to better control their access to the Service Catalog app. For more information, refer to ServiceNow Product documentation to search their help guides.
Role |
Description |
---|---|
x_sap_integration.user |
This role integrates the manage access page. |
x_sap_integration.sapadmin |
This role integrates the application by the admin. |
x_sap_integration.onbehalfof |
This role integrates the ability to raise access requests for any user on behalf of them. |