Forum Discussion
cdempsey-sonicules
Nov 30, 2023Copper Contributor
Best way to retrieve a list of all VE Communities via an API?
I am trying to retrieve the list of all VE Communities (Public and Private) in a network via an API. Based on the documentation here About the Yammer REST API - Yammer | Microsoft Learn I have ...
- Dec 09, 2023You are correct! I was looking at an old script I had! So you've probably already solved this, but I'll post how to do it if anyone else get's stuck
So what you need to do is query group and then filter out creationOption, as you can't filter out only Yammer in a single query due to creationOption not being visable 🙂
This will return all groups and their creationOption:
https://graph.microsoft.com/v1.0/groups?$filter=groupTypes/any(a:a eq 'unified')&$select=id,displayName,creationOptions,resourceProvisioningOptions&$top=999
cdempsey-sonicules
Dec 06, 2023Copper Contributor
Unfortunately this does not work. I have ran this against my tenant and the YammerProvisioning behavior option is not filled. In fact the value appears to be set as part of this property "creationOptions": [
"YammerProvisioning"
],
This is not consistently set as mentioned here https://learn.microsoft.com/en-us/answers/questions/389039/extract-all-microsoft-365-groups-that-were-provisi
"YammerProvisioning"
],
This is not consistently set as mentioned here https://learn.microsoft.com/en-us/answers/questions/389039/extract-all-microsoft-365-groups-that-were-provisi
Dec 09, 2023
You are correct! I was looking at an old script I had! So you've probably already solved this, but I'll post how to do it if anyone else get's stuck
So what you need to do is query group and then filter out creationOption, as you can't filter out only Yammer in a single query due to creationOption not being visable 🙂
This will return all groups and their creationOption:
https://graph.microsoft.com/v1.0/groups?$filter=groupTypes/any(a:a eq 'unified')&$select=id,displayName,creationOptions,resourceProvisioningOptions&$top=999
So what you need to do is query group and then filter out creationOption, as you can't filter out only Yammer in a single query due to creationOption not being visable 🙂
This will return all groups and their creationOption:
https://graph.microsoft.com/v1.0/groups?$filter=groupTypes/any(a:a eq 'unified')&$select=id,displayName,creationOptions,resourceProvisioningOptions&$top=999