...
To initially populate the column after you have configured it and if you make a change to this configuration again in the future, you should sync the attribute. For subjects that are people, you can use USDU:
...
Code Block |
---|
gsh |
...
0% // run USDU to resolve all the subjects with type=person |
...
gsh 1% subject=SubjectFinder.findById("GrouperSystem") |
...
subject: id='GrouperSystem' type='application' source='g:isa' name='GrouperSysAdmin' |
...
gsh 2% session=GrouperSession.start(subject) |
...
edu.internet2.middleware.grouper.GrouperSession: 8106bdad683d43f88bf24c8e683f6162,'GrouperSystem','application' |
...
gsh 3% usdu() |
...
usdu completed successfully |
For subjects that are groups, you can run the following line using GSH:
...
Code Block |
---|
gsh |
...
0% GrouperSession.startRootSession() |
...
gsh 1% for (String g : HibernateSession.byHqlStatic().createQuery("select uuid from Group").listSet(String.class)) { subj = SubjectFinder.findByIdAndSource(g, "g:gsa", true); GrouperDAOFactory.getFactory().getMember().findBySubject(subj).updateMemberAttributes(subj, true); } |