Flow Designer -- Removing inactive users from groups/roles

Alex Edmiston1
Giga Guru

I'm looking to use flow designer to remove users whose state changes from true from assignment groups and remove their system roles... has anyone done this before/know what table you would use for the action?

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Alex,

You could definitely do this with flow designer. I mocked something up for what you could do for deleting group memberships and hasrole records:

find_real_file.png

View solution in original post

15 REPLIES 15

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Alex,

You could definitely do this with flow designer. I mocked something up for what you could do for deleting group memberships and hasrole records:

find_real_file.png

Hi, Brad:

 

I  kind of looked into this and the issue seems to that the business rules associated needed to be deactivated before the  process can   remove the user  roles.   Also I changed the trigger condition to "always"

 

How would I  go about remove the business rules without using the script?

 

thx

Siva

 

 

did you ever find an answer for this?

This has been helpful, however I keep running into an error that will not log when performing this in my (New York) PDI. I built the flow as shown. I inactivated adela.cervantsz in my PDI, since she has 5 roles that would be removed. When I run the flow, I see the following occur...