I'm trying to insert a user programmatically with the Dynamics CRM SDK through OrganizationServiceProxy.Create(SystemUser)
. The context is a Dynamics 2016 on premise server.
When I edit a user in the Dynamics web interface, I can choose a Licence Type for them. Currently, I have these options in the UI : Professional, Administrator, Basic, Device Professional, Device Basic, Essential, Device Essential, Enterprise and Device Enterprise. All my users need to have a Basic CAL.
Browsing through the properties assignable to a SystemUser
, I cannot find one that would match these CAL values.
The
UserLicenseType
property is an int. I couldn't find any documentation about it except this which doesn't fit.CALType
doesn't match either - it has Full, Administrative, Limited, Device Full, Device Limited.
How can I specify a license for my SystemUser
, if possible?