-
Notifications
You must be signed in to change notification settings - Fork 5
Marking Objects
The Google Apps Provisioner uses an attribute assignment to determine which groups to sync. The first time the provisioner starts up it will create the attribute. It will be put in the etc:attribute:googleProvisioner
stem. The attribute will be named syncToGoogle<consumerName>
, where consumerName
matches what was setup in the Provisioner-Properties.
The attribute can then be assigned to stems (which marks all child stems and groups) or to individual groups.
For the following examples the consumerName is
student
.
Assigning the etc:attribute:googleProvisioner:syncToGooglestudent
to the stem qsuob:testStem
can be done via the Grouper Shell with:
grouperSession = GrouperSession.startRootSession();
stemTest = StemFinder.findByName(grouperSession, "qsuob:testStem", true);
attrSync = AttributeDefNameFinder.findByName("etc:attribute:googleProvisioner:syncToGooglestudent",true);
//Add Assignment
stemTest.getAttributeDelegate().addAttribute(attrSync);
//Remove Assignment
//stemTest.getAttributeDelegate().removeAttribute(attrSync);
Assigning the etc:attribute:googleProvisioner:syncToGooglestudent
to the group qsuob:testGroup
can be done via the Grouper Shell with:
grouperSession = GrouperSession.startRootSession();
groupTest = GroupFinder.findByName(grouperSession, "qsuob:testGroup", true);
attrSync = AttributeDefNameFinder.findByName("etc:attribute:googleProvisioner:syncToGooglestudent", true);
//Add Assignment
groupTest.getAttributeDelegate().addAttribute(attrSync);
//Remove Assignment
//groupTest.getAttributeDelegate().removeAttribute(attrSync);
Once the attribute is added to a Grouper stem/directory or group, the next time the change log consumer gets executed or the Full Sync is run the groups will get propagated to Google.