Groups and Roles
-
I would like to have a user enrolled in a group with a subscriber role. (There are multiple users under one subscription.). If the subscription runs out, I want to remove the subscriber role. If they renew the subscription, then add the subscription role back for everyone in the group.
What do you think the best way is to accomplish this? Can this be done with the group update api?
-
I figured this out. Using the group update api with a roleIds array that doesn't contain the subscriber role, the subscriber role is removed from everyone in the group.
Regards
-
@randall You can definitely add roles and add/remove users to groups using the APIs. Roles are tied to applications and can be added and removed from groups. It would be pretty simple to have a Subscription group and then add and remove the user from the group as needed. Is that what you are trying to accomplish?
-
@randall Glad you were able to figure it out.