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.
I'm interested in this as well.
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
- Ivan54Jun 21, 2017Bronze Contributorthanks!