Express (Distributed operating systems), v8.0 > Secure applications and their environment > Authenticate users > Select a registry or repository > Manage realms in a federated repository > Virtual member manager > Reference > Supported commands > User and group management commands


getMembershipOfUser command

Use this command to view a list of the groups that a user belongs to.


Purpose

Use the getMembershipOfUser command to view a list of the groups that a user belongs to.

If successful, the getMembershipOfUser command returns a list of the unique names for the groups that the user is a member of.

If the Use global security settings option is selected for the user realm or the Global federated repositories option is selected as the realm type for the specified domain, this command is executed on the federated repository of the admin domain. However, configuration changes performed on the domain are applied to the security domain-specific configuration.

commands


Syntax

getMembershipOfUser { -uniqueName uniqueName [-securityDomainName domainName] }


Parameters

-uniqueName uniqueName

Unique name for the user whose group memberships to view. This parameter maps to the uniqueName property in virtual member manager.

-securityDomainName domainName

Name that uniquely identifies the security domain. If not specified, uses the global federated repository.


Sample

To view the groups that the user Dan Meyers is a member of, issue this command:
$AdminTask getMembershipOfUser {-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com}

Parent topic: User and group management commands
Command format


Related


removeMemberFromGroup command

+

Search Tips   |   Advanced Search