Select to view content in your preferred language

Add list of users to a group with notebook

95
2
Jump to solution
a week ago
Labels (1)
RebeckaPalm
New Contributor

I have a script that lists inactive users. I want to add these inactive users to a group so that I can notify them by using the notify.group method. Is there a way for me to simply add user to a group, as well as removing them after? 

0 Kudos
1 Solution

Accepted Solutions
RichardHowe
Occasional Contributor III
group.add_users(usernames=YourList)

group.remove_users(usernames=YourList)

View solution in original post

0 Kudos
2 Replies
RichardHowe
Occasional Contributor III
group.add_users(usernames=YourList)

group.remove_users(usernames=YourList)
0 Kudos
RebeckaPalm
New Contributor

Thank you!