All Apps and Add-ons
Highlighted

ldapsearch - Getting objectSid of group members

Path Finder

Hi all,

Looking to pull out the objectSid of the user in order to join it against another query I'm running, but can't see an easy way to do this.

Current query:

| ldapsearch domain=default search="(&(objectClass=group)(CN=My Monitored Group))" basedn="OU=Made Up Name,DC=com" 
| ldapgroup

The problem is that ldapgroup, as per the documentation, only pulls out:

member_dn
member_domain
member_name
member_type
mv_combo

Is there an easy way to get the objectSid of the user from the data above?

Thanks!

Best regards,
Alex