Is there an easy way to figure out to which groups an user belongs?
or even beter, how can i find if something like this exist?
poking around with DIS i found there is something like an DataMinerUser class. But searching for this in the https://docs.dataminer.services/ i can't find anything about this.
Hi Gerwin,
I am not aware of a way of doing what you are after with that DataMinerUser object you mentioned.
However, you should be able to use the following SLNet call to retrieve the users and groups similar to this answer
The GetInfoMessage(InfoType.SecurityInfo) call will return all users and groups as separate objects but you should be able to filter first from the user list the user you want and then check the Memberships property to know which groups they belong to.
Then use the Groups main property to get any further details about the group itself.
Unfortunately, some of these calls are not documented as they are internal ones, and as such there is no official support.
As a rule, we aim to avoid using SLNet calls, and we recommend instead always using available UI or automation options provided in DataMiner Automation or through our web API.
In cases where it is not possible or features are not available, we provide these kinds of calls.
I do believe there would be some value in adding this use case to our NuGets to have helper methods and to have a documented way of achieving what you need and for others as well since similar things have been requested in the past.
https://www.nuget.org/packages/Skyline.DataMiner.Core.DataMinerSystem.Common
For this or any other thing where you see there is a lack of support feel free to use this link to request new features
https://community.dataminer.services/feature-suggestions
True,
But the docs link in the nuget package isn;t working https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Library.Common.html
Oh that is indeed incorrect, I will check internally to get that sorted but in the meantime here is the correct link
https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.html
Thanks for this information, however the question still stand a bit on where to find this kind of information?