Replies: 1 comment
-
At the risk of looking a bit daft answering my own question, we have solved this problem. If you edit the API version number in the connection.py from 'v1.0' > 'beta' (appears 4 times), then all the enhanced user objects are returned. Obviously Microsoft have included a lot more info in the beta version. The license info returned is not in human readable format, but by 'skuid', e.g: 'skuId': '6fd2c87f-b296-42f0-b197-1e91e994b900' Using this page: 'https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/licensing-service-plan-reference' will enable you to build a lookup table in your code and you are home and dry. Thanks again for this great repos, and maybe a switch for the API version number in a future release. |
Beta Was this translation helpful? Give feedback.
-
Hi anyone, everyone.
First of all, thank you so much Janscas for this brilliant contribution to access 365 data using Python. Our needs are actually pretty simple, in that we're only trying to pull through user details. We can connect OK to the tenancy and get the basic stuff (displayName, email address, phone numbers etc), however as well as this we really need the user's assigned licenses, but all the additional fields, e.g assignedLicenses:
self.assigned_licenses = cloud_data.get(cc('assignedLicenses')) (from O365/directory.py)
.. just return 'None'. Has anyone else had any success with the additional fields, or even just the assignedLicenses field in particular?
I would be eternally grateful if anyone could shed some light on this and help us. We are pretty sure we have all the correct Microsoft permissions as shown here:
Many thanks
Rob
Beta Was this translation helpful? Give feedback.
All reactions