1
votes

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?

1
Is for on-premise or online?Nicknow
on-premise. I'll add that to the questionguillaume31

1 Answers

0
votes

Here are the values that I've got from CRM 2016:

Caltype:
Professional = 0
Administrator = 1
Basic = 2
Device Professional = 3
Device Basic = 4
Essential = 5
Device Essential = 6
Enterprise = 7
Device Enterprise = 8

Accessmode:
Read-write = 0
Administrator = 1
Read = 2

You can get same values (and even more for accessmode) from here