joined_user_in_group
Use the joined_user_in_group command to have adclient query Active Directory to see if a specified user belongs to a specified group. This command works only for users and groups within the domain to which ADEdit’s host computer is joined through adclient.
Because this command queries Active Directory throughadclient, the query might use adclient’s cache rather than connect directly to Active Directory. The adclient cache isn’t guaranteed to be updated with ADedit activity. Therefore, you might need to execute the Delinea UNIX command adflush before using joined_user_in_group to ensure you get the most up-to-date results.
Zone Type
Not applicable
Syntax
joined_user_in_group user_UPN group_UPN
Abbreviation
jug
Options
This command takes no options.
Arguments
This command takes the following arguments:
| Argument | Type | Description |
|---|---|---|
| user_UPN | string | Required. Specifies the user principal name (UPN) of the user for which you want to check group membership. |
| group_UPN | string | Required. Specifies the UPN of the group for which you want to check user membership. |
Return Value
This command returns 1 if the user is a member of the group, or 0 if the user is not a member of the group.
Examples
joined_user_in_group martin.moore@acme.com poweradmins@acme.com
This example returns 1 because martin.moore is a member of the poweradmins group.
Related Commands
The following commands performs actions related to this command:
joined_get_user_membershipusesadclientto return a Tcl list of groups that a user belongs to.get_effective_groupschecks Active Directory directly and returns a Tcl list of groups a user belongs to.get_group_memberschecks Active Directory and returns a Tcl list of members in a group.