Skip to main content
Question

Computer Extension for local group on mac and membership

  • September 5, 2024
  • 4 replies
  • 28 views

Forum|alt.badge.img+4

Hi,  I am looking for some help to see if there is an existing JAMF Brand Computer Extension for reporting all local groups on a computer and\\or a particular group name.  I would also like it to report all of its membership.  ANy help is appreciated.  Thanks!!

4 replies

A_Collins
Forum|alt.badge.img+11
  • Contributor
  • September 6, 2024

Basically listing all groups is "dscl . list /Groups"  if you looking for particular group 

if dscl . -read /Groups/"the_group_you_looking_for" &> /dev/null; then echo "yup group exist" else echo "nope it does not exist." fi

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • September 7, 2024

It would be better to ask what you are trying to do any why, what is the problem you are trying to solve? Jamf already natively reports on who is in the admin group, but do you really care who is a member of something like _appserverusr?


Forum|alt.badge.img+4
  • Author
  • Contributor
  • September 9, 2024

It would be better to ask what you are trying to do any why, what is the problem you are trying to solve? Jamf already natively reports on who is in the admin group, but do you really care who is a member of something like _appserverusr?


What we are looking to do is to create a local group on the computer and add the current logged in user.    This group will be used for internal purposes.  We would like to report this because it will not be on all computers and we would like to be able to see who has this group and who is assigned.  


A_Collins
Forum|alt.badge.img+11
  • Contributor
  • September 9, 2024

dscl command would be enough to perform what you want. you can use man dscl to see how to use it