The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How do I auto remove a single user from a group using flow designer

Thomas99
Tera Contributor

We have a catalog item "Archive user"  It has a variable "User to be archived" 

 

When the request is submitted I want the user to be automatically removed from the group. 

 

My problem is I cannot do "each itemin" as it wont let me drag and drop the data pill.  How can this be achieved? 

 

Thomas99_0-1679022583201.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Thomas99 

you want to remove only 1 user or the variable holds multiple users?

what type of variable it is?

if it's reference then no need to use For Each action.

you can directly use delete record action

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Thomas99 

you want to remove only 1 user or the variable holds multiple users?

what type of variable it is?

if it's reference then no need to use For Each action.

you can directly use delete record action

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

ServiceNow #ServiceNow Flow Designer #ServiceNow Cat Item #ServiceNow Remove users from Assignment Group #ServiceNow Groups