0 votes

There is a script to indicated if a user is a member of any listed groups. Is it possible to have a version of the script that checks a group or member of any nested group?

Current script page: https://www.adaxes.com/script-repositor ... s-s294.htm

by (420 points)
0

Hello,

Do we understand correctly that you need the script to return true if a user is a member of any group specified in the $groupDNs variable or any of its nested groups? If that is correct, you can use the second script from the article you referenced (Return true if the target object is a member of any of the groups).

0

We are wanting to specify a group in the code, and have it check that group plus all nested groups.

1 Answer

0 votes
by (294k points)
selected by
Best answer

Hello,

That is exactly what the second script from the repository article does. You need to specify the distinguished name (DN) of the group in the $groupDNs variable. The script will return true if the user is a member of the group itself or any of its nested groups.

If you need to check membership of only one group, you can use the built-in condition If is a member of <Group>. To check membership in nested groups, make sure the Check direct members only option is not enabled.

Related questions

0 votes
1 answer

Our Help Desk currently 'mirrors' the group membership of a new user based on another existing user in our AD. I'd like to be able to automate this so that the initiator ... and 'paste' it on the new user being created. Any help on this would be appreciated!

asked Apr 21, 2020 by RayBilyk (240 points)
0 votes
1 answer

Hello, I have a web service that checks if a user is a member of a group. I am not concerned if they are a direct member or an indirect member of a group, but if the user is in the ... I pass it User A and Group 1. I am using ADSI, c# (.Net 4.0), and WCF.

asked Feb 23, 2014 by mbcalvin (140 points)
0 votes
1 answer

Is there any way to add a warning message when someone tries to add a group member that already is member? Checked config but found nothing related. Added a new member that ... the group and there is no warning, and the logs show that the task was completed.

asked Jul 9 by lramirez (20 points)
0 votes
1 answer

I need a specific user, when requesting another user to join a group, to have an approval sent to the AD management team. I tried to create a "Business Rule", but I'm getting an "Access Denied" error. Any idea what this could be?

asked Aug 20 by fgmello (40 points)
0 votes
1 answer

Hello, A year ago, in a previous ticket, I inquired about the possibility of mandating that Adaxes users enter a ticket number before adding a member to a ... automatic business rules that facilitate the addition/removal of members from groups. Regards, Fabian

asked Jul 16 by fabian.p (380 points)
3,588 questions
3,277 answers
8,303 comments
548,090 users