New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you update/document the expected values in UserLicenseType #795
Comments
Hi, does anyone have the values for this to use in a PowerBI report? I can create the table if someone can provide the "key:value". Thanks! |
I recently had a support case on the topic of License Enumerations. You are correct that we don't have any DB sided mapping for these, as they are NOT optionset values. I've done some digging and pulled up the most recent enumerations for the integer values stored in CRM under userlicensetype on the System User Entity. Beware the friendly titles for these do not match 1:1 with what will show in Office 365; but should give you a good idea of what licenses a user has and what's actually allowing them as an Enabled user in CRM. If further details are needed, I suggest some simple trial and error to identify which license in O365 maps to which Enum. It may be helpful if you updated what you find here so we can maintain some sort of temporary community depot until we get an official mapping for your usage! 1,Plan 1 Formatted in CSV for your Excel based consumption 🐱👤 |
Following up on this, I just found a fairly clever way to map a bit more accurately using the online graph api tooling: I've mapped the above sheet to the product SKU's with a clever python script 😎 and here are the mapping for userlicensetype to product SKU:
You can use the licenseDetails in the graph API to pull your own or another user's license assignment: Example Output from Graph API:
The AAD ID for the user directory object is stored in System Users under: azureactivedirectoryobjectid Then you can map the SKUid with the following document: This will allow you to get a friendly name from the license enum in CRM 🐱🐉 |
@arunvinoth I have discussed your request with the product team. The result is that we will not document the UserLicenseType field value since the values are expected to change over time and would not be meaningful to most customers. |
Basically UserLicenseType contains random integer values, not sure about the meaning of those values. The documentation should share the details about the Enumeration values.
You can refer this discussion for more details: https://stackoverflow.com/q/54705114/7920473
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: