The CreatorCon Call for Content is officially open! Get started here.

Flow fails to remove user from HR Group, even when flow is set to "Run as system user".

Chandrakanth V
Tera Contributor

Delete/remove user from groups via flow designer. But faced error as "unknown error occurred".
Flow is set to Run as System user, Flow is in global scope. 
Tried to check docs as well. No luck with provided solution: Security issue while adding/removing users from HR... - ServiceNow Community

ChandrakanthV_0-1758015770746.png

Also want to know, run as system user should Bypass all restrictions right? why not in this case.

Thanks

9 REPLIES 9

Bhuvan
Mega Patron

@Chandrakanth V 

 

Refer below knowledge article to resolve the issue

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0996223

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

Hi Bhuvan,
Thanks for KB, but I'm not removing the role for user I'm trying to remove user from an HR Group, Group type = security via delete record action on flow. But it errors out. even though its run as system user.
Thanks!! 

@Chandrakanth V 

how about running this from background script with admin?

is that user getting removed?

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

Hii Ankur, This is to remove user from an HR group, it removes from normal groups but HR group with type = security is the one causing error.