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?
Solved! Go to Solution.
group.add_users(usernames=YourList)
group.remove_users(usernames=YourList)
group.add_users(usernames=YourList)
group.remove_users(usernames=YourList)
Thank you!
It might be easier to do this without a group. From the User Manager, you can call send_notification with a list of usernames.