Hey all,
Is it possible, preferably without using the API, to get a list of Jamf groups for a user based on the account they used to sign into Self Service?
Our field techs have 2 users ID's in JSS; one is a standard user account, the other an elevated permissions account. The techs are all members of a JSS static group (Field Techs)
I have a Self Service policy that runs a script. The script captures the user ID of the person signed into Self Service. If someone signs in with a standard user account, the script behaves in a particular way. If they sign in using the elevated account, the script modifies its behavior to enable certain options for the field techs.
The goal there was to modify the script behavior based on whether it was a standard account or elevated account that signed in, so that if a non-Field tech user signed in they would see a limited version of the script functions.
My problem is that techs tend to sign in with their standard user account more often than the elevated account, meaning the tech will not have access to all the options unless they sign out and in again. Not the end of the world, but not especially convenient either.
So, my thinking was that if I could get the group (Field Techs) and modify my script to enable those functions based on the group membership, then it wouldn't matter which account they used, as long as both accounts were members of the Field Techs group.
I know I can use the API for this, but I was hoping to avoid the extra complexity involved.
thanks
Phil