cancel
Showing results for 
Search instead for 
Did you mean: 

[RESOLU] Recuperer authorityName d'un groupe

marius
Champ in-the-making
Champ in-the-making
Bonjour,

Je souhaite récupérer, dans un web script,  le nom du groupe auquel appartient un utilisateur.
Actuellement je récupere l'objet authorityContainer du groupe de la manière suivante :

var tab = people.getContainerGroups(person);
model.groupe = person.properties.username + " : " + tab[0];

en manipulant l'array tab, j'accède au name de authorityContainer du groupe. De cette manière j'obtiens l'uuid du noeud :

tab[0].name

Ce que je ne comprend pas c'est que : alors que l'uuid récupéré au dessus correspond au noeud, l'accès a l'authorityName me retourne un "undefined", au lieu d'un "GROUP_monGroupe".

tab[0].authorityName

Merci d'avance pour votre aide
cordialement.
1 REPLY 1

marius
Champ in-the-making
Champ in-the-making
je vais repondre à ma question. Ca marche mieux ainsi :
tab[0].properties["{http://www.alfresco.org/model/user/1.0}authorityName"]

:mrgreen:
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.