Add/remove users into group

Ash41
Kilo Sage

Hi Team, 

 

I have custom table for example ABC, it has 2 fields User-> reference to user table, group->reference to group table.

Any addition/deletion I was users should be added/deleted from the group. Please suggest

9 REPLIES 9

Why thinking of a Business Rule?

 

Flow Designer is nowadays the first goto.
You can do this with zero code using Flow Designer.
Business Rule can still work though does require scripting.
Can everyone in your organization create and maintain such (no, else you wouldn't be posting this question).

It's up to you.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi, 

 

will you be able to provide any sample flow? will try same

Try first yourself, and then share what issue you are running into.

 

That will save me a lot of time (and I do this for free) and perhaps you will see yourself how easy you can solve this within minutes using Flow Designer. Though you do have to try. Also I don't have your custom table setup.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Deepak Shaerma
Kilo Sage

Hi @Ash41 

To Remove the users from a group. 

  • Search sys_user_group.list in Application Navigator. 
  • open your group from which you need to remove the user.
  • Go to Related Tabs  and click edit.

Refer the images below for more.

 

Please mark this helpful and accepted if this resolves your query.

DeepakShaerma_0-1705557148434.png

DeepakShaerma_1-1705557185414.png

 

Priyanka_786
Tera Guru
Tera Guru

@Ash41 ,

Please check below links. This may helpful you to design flow using flow designer.

https://www.servicenow.com/community/itsm-forum/how-to-add-user-to-group-sys-user-group-using-flow-d...

https://www.servicenow.com/community/developer-forum/flow-designer-removing-inactive-users-from-grou...

 

Please mark my response helpful/accepted if it helps you.

Regards,

Priyanka Salunke