On a recent project, I was working with the PHP SDK for Graph API to feed Office 365 data into a WordPress site. One of the requirements was to pull a list of Teams into the site which requires access to the resourceProvisioningOptions property of the group object to determine if the group is a Team or just a regular Unified group. Looking through the documentation and code base I couldn’t find a method to return that property.
Turns out, not all properties have a getter in the SDK and accessing the _propDict array which contains all properties isn’t possible because it’s protected. Fortunately, there is a method called getProperties() that gets the property dictionary containing all properties on the object.
$resourceProvisioningOptions = $group->getProperties()['resourceProvisioningOptions'];
Hope this helps someone