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 through adclient, 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 Centrify 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: