Licensing... that thing that Microsoft ask us time to time...
This post is more a reminder to myself than actually a post for posterity in order to remember what are the codes of Microsoft CRM licensing types or "CalType" in the entity "systemuser". Since i run several reports on all the Organizations I need to automatize this kind of reports so we can charge the client accordingly.
if (((OptionSetValue)et["caltype"]).Value == 0) // 0 = "Professional"
CalType = "Professional";