I need to read the Dynamics.dic file to retrieve the max number of licensed users for our client sites. I want to automate the license true-up, how can I open this file
*This post is locked for comments
"I opened a ticket with MS, they said it was not in a table, but in the dictionary file"
They should have said "it is encoded in the registration keys".
You didn't say how/when you needed this info. For example, you could ask one of the users to open the GP About window and ask them how many users it says.
But if you were writing some kind of application and needed to know this on a programmatic basic, you could try the Interop.GPRegistration.dll.
This is installed into the folder:
C:\Program Files\Common Files\microsoft shared\Dexterity\v2.0
There is a method for NumUsers which should give us the number of GP users for the given keys (you have to provide them to the method).
I can't find any documentation on this assembly on exactly how to use it but the class looks somewhat straightforward.
One thing I'd note is that this assembly is quite old and I'm sure hasn't been updated in quite a few years - probably before the change for GP limited and self-service users. So you'll have to see if the NumUsers is correct for the different counts.
Otherwise if you are inside of GP when you are running this, you can pull the user count from the global variables.
'Max Number User In System'[USERTYPE_FULL] of globals + 'Max Number User In System'[USERTYPE_LIMITED] of globals + 'Max Number User In System'[USERTYPE_SELFSERVICE] of globals ;
The constants are 1,2,3 if you were going to use this from a vstools application.
Using the globals is the best solution if you are in Dexterity or Vstools inside of GP.
If you had to be outside of GP, the interop assembly is the only shot you'd have.
I would imagine that is built into some algorithm in the dexterity DYNAMICS.DIC file that is based on your registration keys. I do not think Microsoft would be willing to share that type of information.
Thanks for the speedy response. But, what table? I found the table where the licenses are, but not the max user count. I opened a ticket with MS, they said it was not in a table, but in the dictionary file. I would love to hear from you on where this information is stored.
The number of users under your license is kept in SQL. Even if you had Dexterity running you would not find this information in your DYNAMICS.DIC file.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156