How to add user to group (sys_user_group) using Flow designer

Kifrez
Kilo Guru

Hi, could you please let me know if you have used/added user from sys_user table to group (sys_user_group) using Flow Designer?

If so, how do you do it? What action do you use ? I can't seem to find the action

Or does anyone know how to automate adding user to a group within ServiceNow?

1 ACCEPTED SOLUTION

sk8
Kilo Expert

Hi Freddy,

To add the user to a group in Flow designer follow the below steps:

1. Add create or update record action.

2. Select Table name - Group member [sys_user_grmember].

3. Now select the group field and select the group in which you want to add a user.

4. Select the user field and select the user to add to the group.

 

Please mark answer as helpful/correct if it works for you.

Regards

Sk

View solution in original post

15 REPLIES 15

sk8
Kilo Expert

Hi Freddy,

To add the user to a group in Flow designer follow the below steps:

1. Add create or update record action.

2. Select Table name - Group member [sys_user_grmember].

3. Now select the group field and select the group in which you want to add a user.

4. Select the user field and select the user to add to the group.

 

Please mark answer as helpful/correct if it works for you.

Regards

Sk

Hi @sk

I am not sure how to differentiate between groups.

Do you also happen to know how to change the display ? Instead of displaying created time, we would like to display group name?

Thanks

Regards,

Freddy

find_real_file.png

Hi Freddy,

Before updating the record action, add one "Lookup Record" action to get the record which you want to update.

Then in the update record action in the *Record field you need to "Drag and drop record data pill" that you get from the lookup record action.

Regards

Sk