Flow designer workflow deletes user profile from the group and not remove

CarolMa6
Tera Expert

Hi, 

 

The user submits a request, and their manager approves or rejects it. If the request is approved, the user is added to the idea group and assigned a catalog task. Once the task is completed and closed, the user should be removed from the group.

 

Currently, the workflow is mistakenly deleting the user’s profile instead of just removing them from the group. The correct action should be to only remove the user from the group.

 

CarolMa6_0-1753786203814.png

 

CarolMa6_1-1753786283154.png

CarolMa6_2-1753786339560.png

CarolMa6_3-1753786379810.png

CarolMa6_4-1753786390884.png

CarolMa6_5-1753786442431.png

 

CarolMa6_6-1753786458000.png

 

Regards 

CarolMa

 

 

 

 

5 ACCEPTED SOLUTIONS

Laveena_A
Tera Contributor

Hi @CarolMa6 

I’ve identified the issue — it’s with the final action "Delete Record."

Under "Record" the reference should stop at "Group Member", but it’s extended to "User", which is causing the user deletion.

 

Happy to address any follow-up queries. If this fix resolves the issue, please mark it as Helpful and Accept the solution to close the loop.

View solution in original post

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @CarolMa6 

In the below action you need to delete the entry from sys_user_grmember not from sys_user. I think you are deleting the sys_user record. You should correct it, flow will start working fine.

SaurabhGupta_0-1753788206774.png

C

If the provided solution meets your needs, kindly consider marking it as helpful and accepting it as the solution. This helps others who may have similar questions.


Thanks and Regards,

Saurabh Gupta

View solution in original post

palanikumar
Mega Sage

Hi @CarolMa6 ,

 

You can delete the record using the output of "create or update" step (2nd Screenshot). Create you pass this as input to Delete Record step and see whether it is working

 

Thank you,
Palani

View solution in original post

Laveena-Agarwal
Kilo Sage

Hi @CarolMa6 

It’s with the final action "Delete Record."
Under "Record", the reference should stop at "Group Member", but it’s extended to "User", which is causing the user deletion.

If this fix resolves the issue, kindly mark it as Helpful and Accept the solution.

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@CarolMa6 

you went 1 step ahead and picked User Record and hence it's deleting User Record

You should only select Group Member Record here

AnkurBawiskar_0-1753790491754.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

5 REPLIES 5

Laveena_A
Tera Contributor

Hi @CarolMa6 

I’ve identified the issue — it’s with the final action "Delete Record."

Under "Record" the reference should stop at "Group Member", but it’s extended to "User", which is causing the user deletion.

 

Happy to address any follow-up queries. If this fix resolves the issue, please mark it as Helpful and Accept the solution to close the loop.

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @CarolMa6 

In the below action you need to delete the entry from sys_user_grmember not from sys_user. I think you are deleting the sys_user record. You should correct it, flow will start working fine.

SaurabhGupta_0-1753788206774.png

C

If the provided solution meets your needs, kindly consider marking it as helpful and accepting it as the solution. This helps others who may have similar questions.


Thanks and Regards,

Saurabh Gupta

palanikumar
Mega Sage

Hi @CarolMa6 ,

 

You can delete the record using the output of "create or update" step (2nd Screenshot). Create you pass this as input to Delete Record step and see whether it is working

 

Thank you,
Palani

Laveena-Agarwal
Kilo Sage

Hi @CarolMa6 

It’s with the final action "Delete Record."
Under "Record", the reference should stop at "Group Member", but it’s extended to "User", which is causing the user deletion.

If this fix resolves the issue, kindly mark it as Helpful and Accept the solution.