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 (270k 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 (230 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

Currently, when I disable a user account in Adaxes, the group memberships of the user remain intact. I'd like to automate the removal of group memberships such as distribution ... a list of groups/DL that the user was previously in and removed from. Thanks!

asked Nov 3, 2021 by jayden.ang (20 points)
0 votes
1 answer

Is there a report which shows users who are not a member of a specific group?

asked May 3, 2023 by dgilmour (20 points)
0 votes
1 answer

Hello! I've made a simple business rule: AFTER adding a member to a group IF Operation Succeeded THEN Send email notification In the activity scope, I have selected the group ... but the business rule isn't triggered. How do I make this work? Regards, Erlend

asked Oct 22, 2014 by Erlend (160 points)
3,326 questions
3,026 answers
7,727 comments
544,678 users