Okay, so what role do you want to assign? And is it for all users who log in? If yes, then create a Flow and add a condition to check if it’s their first login. Assign the role by adding the user to a group, and from there the user will get the role."

 

https://www.servicenow.com/community/developer-forum/how-do-i-add-a-user-to-a-role-in-flow-designer/...

we can go with the business rules as well right?

Yes, but Flow is recommended as it is low/no-code. I think I’ve answered your question—please accept the answer and close the thread."

View solution in original post

Thank you the solution.
can you please tell from where did you get to know that snc_internal should be stand alone role. Is there any business rule ? I tried to find that code/flow but no luck.

Hi @manirathore 

snc_internal and snc_external roles are added in the instance when you activate the plugin called 'Explicit Role'. If you activate that plugin and try to add any role to snc_internal or snc_external, it won’t work.

 

https://www.servicenow.com/docs/bundle/yokohama-platform-security/page/administer/contextual-securit...