Hello,
As the title says, I’m trying to get the current user’s User Groups inside a job script. When I run deadlinecommand -GetUserGroupsForUser inside a terminal, it returns the user groups as expected. When I try to run my script inside the Monitor instead, I get either of these:
System.String[] if I print RepositoryUtils.GetUserGroupsForUser(user)
0 if I print subprocess.call([“deadlinecommand”, “-GetUserGroupsForUser”, “user”])
Would it be possible to get a list of strings with the groups the current user belongs to? And would you be able to advise why using subprocess prints 0? Thank you!