Flow Designer Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi,
When a user is created, it should automatically assign a group any. I am not able to set the logic to sys_user_grmember table. Kindly help.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@ServiceNow Use6 once the user is created, your second step should not be lookup , it should be create record.
In the create record step, you need to select the table as sys_user_grmember and select value of user from previous step(create user) and select group as per your requirement( which you want the user to be member of).
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @ServiceNow Use6 ,
Here is how your flow looks. Are you getting any errors or warnings during execution?
And also what's the use case here, we can suggest a better approach because just creating a user without any validation is not a good approach!
Result:
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi @ServiceNow Use6 ,
1) No need for a Look Up Record action for sys_user_grmember. if you want u can validate for user created, by using lookup record for user record created
2) then on the next step after look up record found for user, you can use a Create Record action with the table set to sys_user_grmember
3) For the User field, insert the data pill from the lookup record of user (dot walk to the user’s sys_id).
4) Then select the group you want the new user to be added to
If you find this answer useful, please mark it as solution accepted/helpful
Thanks and regards,
Mohammed Zakir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Hemanth M1,
I have a question, actually i manually did it before i attempt in flow designer. I created a user in user table and then i checked for the record in sys_user_grmember table but i can't find the record. In your second step, user will not be found right.
@Mohammed8 asked me to selct the sys_id corcerning the first step or the trigger step, as soon as i do it, it is changing to user table and not living in sys_user_grmember table anymore.
Regards
Suman P.
