Checking User Role against reference in Flow Designer

Chad Wilhelm1
Tera Expert

Hello,

I want to check a user has the itil role on if condition but it does not appear you can do this in flow designer.  Thanks for assistance.

 

find_real_file.png

4 REPLIES 4

Chris35
Giga Expert

Hello,

You could create an Action that you call, either doing a table lookup in table: sys_user_has_role, to see if the role exists for the user, or a script step in the action using: gs.hasRole("itil").
That action can in turn return true / false, which you can have an IF for in your Flow.

Hello,

Do you have an example of the script action within the flow?

Thanks,

Chad

Hi Chad

Did you succeed in the Flow Designer test is a user is member of a group?

I am also lokking for a Flow Designer Flow that is checking

Is the current user member of group (group_name)

If so; stop the flow

If not; add the user to the group

 

I am stuck with the check if the user is allready member of the group.

Grets

Wim 

Community Alums
Not applicable

I was able to figure this out with the following. Do a Lookup at the top then call it in an IF at the bottom:

TarikSabie_0-1709567768295.png

 

TarikSabie_1-1709567825605.png