You are here

getContainerGroups

getContainerGroups(person) gets the groups that contain the specified authority.

Parameters

person
The user (cm:person) to get the containing groups for.

Example

The following code returns a list of groups that abeecher is a member of:

var user = people.getPerson("abeecher");

if(user){
    model.containers = people.getContainerGroups(user);
}

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.