Question obtenir la liste des groupes imbriqués

Plus d'informations
il y a 13 ans 7 mois #12804 par darphboubou
Bonjour,

Voila mon souci, lorsque que je fais un extract des groupes d'un user, je voudrai obtenir la liste exhaustive à savoir les groupes impriqués.

la commande suivante me permet d'obtenir les groupes auquels appartient le user toto

Get-QADUser -Name Toto | Get-QADMemberOf | Select name

j'aimerai donc obtenir les groupes rattachés aux groupes obtenu par cette commande

Merci d'avance

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 13 ans 7 mois #12807 par Matthew BETTON
Bonjour,

Pour avoir la liste des 'Nested Groups', utilises le paramétre '-indirect' de la Cmdlet ' Get-QADMemberOf '.

Supply this parameter on the command line if you want the cmdlet to retrieve groups to which the object specified by the Identity parameter belongs because of group nesting, in addition to groups of which the object is a direct member.

If this parameter is omitted, the cmdlet retrieves only those groups of which the object is a direct member. If this parameter is supplied, the cmdlet takes the immediate group membership list of the object and then also recursively expands each group in this list to determine its group memberships to arrive at a complete set of the groups.


@ +

Matthew

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 13 ans 7 mois #12815 par darphboubou
Merci cela fonctionne parfaitement :)

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.034 secondes
Propulsé par Kunena