- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 04:41 AM
We have been doing some role cleanup review and noticed that some of the entries on sys_user_has_role were in the state of "Pending Approval". I have been looking through documentation but don't see anything that discusses the purpose of this status for roles? Could anyone point me to to a doc that would clarify the intent of this status for roles? Is there an approval somewhere that needs to be processed? I checked for a rule or script, but didn't see anything that would perform such an action.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 06:14 AM
There is an assignment rule for that role OOTB - https://docs.servicenow.com/bundle/rome-employee-service-management/page/product/workplace-safety-mg...
You might not have the job running switch is probably the reason they are in the "pending approval" state.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 06:14 AM
There is an assignment rule for that role OOTB - https://docs.servicenow.com/bundle/rome-employee-service-management/page/product/workplace-safety-mg...
You might not have the job running switch is probably the reason they are in the "pending approval" state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 06:28 AM
Thank you Miguel.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 05:52 AM
Hi Robert S,
This means there are few users for whom a requested role has not been processed.
This would be better handled by using a standard service request with a req_item for each role being requested. Manage the approval process there with workflow and script the creation of the sys_user_has_role record following successful approval. This is because you should see it that once that sys_user_has_role record is created, that the user has that role, don't think of that record as being applied conditionally; a user either has the role or doesn't, eg. has the record or doesn't.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep