You are here

Add group or user to a group

Adds a group or user to a group.
POST /alfresco/service/api/groups/{shortName}/children/{fullAuthorityName}

The webscript will create a sub group if one does not already exist, with the fullAuthorityName.

You must have "administrator" privileges to modify groups.

If the authority is for a group and doe not exist then it is created.

The webscript returns Status_Created if a new group is created, otherwise it returns Status_OK. If Status_Created returns the new sub group, otherwise returns the group.

The web script description document specifies the following options:
Value Description
json The default response format
user The authentication access
required The transaction level
argument The format style