Auto assignment of sn_cmdb_user for CMDB Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
How should I be managing the assignment of the role sn_cmdb_user? I would think this role should be automatically assigned in the situation a cmdb_data_management_task is assigned to a specific individual but that is not the case. I'm curious should I make a business rule to automatically assign the role? What do you recommend?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday - last edited Monday
Although it is technically possible, adding the role to the user based on the task assignment (cmdb_data_management_task) by writing BR would not be a good idea.
there are two simple ways you achieve this
Group-Based Assignment:
Flow Designer & Catalog Items:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@Joseph Lighthal - did you get a chance to check?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
I would recommend to check when a task is assigned to the user, if the user has sn_cmdb_user role and if they do not have necessary role, display an error message and suggest to select an user with role. If needed, create a task or request for role assignment to the requested user so that it can be acted upon and access is provided.
There are possibilities a user might be assigned by mistake or if unintended user is selected, you would not have gate checks before providing role if you do automatic role assignment.
If you do not want approver for CMDB data management task, you can use below knowledge article
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1362321
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi @Joseph Lighthal ,
Here are a couple of ways to handle this:
- Business Rule: Create a Business Rule on cmdb_data_management_task (post insert) that automatically adds the sn_cmdb_user role to the assigned user....
- Group Based Role: Assign the role to a group, and make sure task assignments align with that group. You can also automate role granting/removal via Flow or Scheduled Job for precise control....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/