Hi.
We could use GetUserGroups to get the users groups for the current user.
But how could we using an automation script:
- Get the groups of another user?
- update the groups of another user?
Kind regards.
Hi Henri,
To get the groups for a given user you can reference this answer. With the GetInfoMessage(InfoType.SecurityInfo) call you can fetch all users and all groups and then do a cross-reference of the data to determine the user's group.
Regarding your second question, the second part of this other answer where AssignUserToGroupMessage is used to manipulate a user's group.
The same disclaimers of the other answers still apply as these are internal calls and we do not recommend using them, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice. We recommend instead always using the correct UI or automation options provided in DataMiner Automation or through our web API.