ccollab admin group sync

Top  Previous  Next

Usage: ccollab [global-options] admin group sync [--create-users --delete-groups] <syncfile>

 

sync - Sync to supplied XML

 

Command Options

Option

Required?

Description

--create-users

N

Whether to create users in the syncdata that don't already exist; if not specified, nonexistant users will be ignored

--delete-groups

N

Whether to delete groups not in the syncdata; if not specified, groups are disabled instead

<syncfile>

Y

Filename of the input XML syncdata, or - for stdin

 

Synchronize the server's group configuration to match that of the supplied XML. However, no changes will be made to manually-created groups. See the user's manual for documentation on the XML format. You must be an Administrator to execute this command.

 

Examples:

       ccollab admin group sync /tmp/input --delete-groups

       cat /tmp/input | ccollab admin group sync - --create-users

 

Example XML input:

 

<groups>

       <group guid="groupa" title="Group A" description="The A Group concerned with initials">

               <member-user login="alice" />

               <member-user login="adama" />

       </group>

       <group guid="groupb" title="Group B" description="The B Group that includes those in Group A">

               <member-user login="bob" />

               <member-user login="betty" />

               <member-group guid="groupa" />

       </group>

       <group guid="groupc" title="Group C" description="The C Group that is everyone."

               includes-all-users="true" allow-associate-with-reviews="no" >

               <member-group guid="groupb" />

       </group>

</groups>

See full XML Schema.