Score:0

Active Directory explorer - How can I search if a Group 'contains' a user?

cn flag

In my Active Directory there is a Group "Gruppo Pippo", whit the attribute 'member'. 'member' contains many 'users':

CN=Alba Albi,OU=Developers,OU=Users,...

CN=Bianca Bianchi,OU=Partners,OU=Users,...

CN=Carlo Pony,OU=Developers,OU=Users,...

CN=Duilio Dorati,OU=Developers,OU=Users,...

I need a search that tell me if a user is contained in "gruppo Pippo".

I tried

(&(distinguishedName=CN=Gruppo Pippo,OU=DevOps,OU=Applications,OU=Groups,OU=Organization)(member=*Pony*))

but the operator 'contains': 'member contains Pony' doesn't run. (see image). Any suggestion? Thanks.

The search on AD

Score:1
cn flag

The member= filter is incorrect. The value needs to be the value in the multivalued attribute, the distinguished name.

member="CN=Carlo Pony,OU=Developers,OU=Users,..."

Criceto avatar
cn flag
Thank you Greg, you're right. I mispelled the answer (now it is correct). I know only the surname of the user, not the entire distinguished_name, and I would find if the surname is contained in the attribute 'member' of the group 'CN=Gruppo Pippo,OU=DevOps,OU=Applications,OU=Groups,OU=Organization'. If you see the image it is clearer. Thanks.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.