Forum Discussion
See/change who is subscribed programmatically?
- Jun 20, 2017
You can use the Add-UnifiedGroupLinks cmdlet for that, simply set the member type as subscriber. It can be both a member and a subscriber, comparing those two will give you the list of which members are subscribers, etc.
If possible, I need a way to mass subscribe (not join), or mass unsubscribe users programmatically, rather than their choice.
- Ivan54Jun 20, 2017Bronze ContributorVasils command does show the subscibers. I have no clue though on how to manually subscribe users.
I'm interested in this as well.- VasilMichevJun 20, 2017MVP
You can use the Add-UnifiedGroupLinks cmdlet for that, simply set the member type as subscriber. It can be both a member and a subscriber, comparing those two will give you the list of which members are subscribers, etc.
- Brent EllisJun 21, 2017Silver Contributor
Should have did a bit more research on those commands, didnt realize it treated Members/Subscribers differently!
Quite simply:
- All subscribers are members
- Not all members are subscribers
Add a user as a member only:
Add-UnifiedGroupLinks -Identity GROUP -LinkType Members -Links user@email.com
Add a user as a member or subscriber, and/or change a member to a member+subscriber
Add-UnifiedGroupLinks -Identity GROUP -LinkType Subscribers -Links user@email.com
Remove a user from the group:
Remove-UnifiedGroupLinks -Identity GROUP -LinkType Members -Links user@email.com
Remove a subscription, but not a membership
Remove-UnifiedGroupLinks -Identity GROUP -LinkType Subscribers -Links user@email.com