Subject: Grouper Users - Open Discussion List
- From: Chris Hyzer <>
- To: "Sachdeva, Vivek" <>
- Cc: grouper users list <>
- Subject: [grouper-users] RE: Can GSH import roles?
- Date: Tue, 21 Jan 2014 02:13:06 +0000
- Accept-language: en-US
Does this help?
I tried the gsh script to add about 300 roles and it added successfully. I also created a permission definition using the gsh script. I referred to this link https://spaces.internet2.edu/display/Grouper/GrouperShell+(gsh) to create permission definition. Now, I need to create the attribute names and attach those to the permission definition. I can not find any example for that. Can you please help?
You can call WS from GrouperClient in a Java program. I you arent the Grouper admin, you have to go that route. If you are the grouper admin, you can use a grouper client script. Doesn’t matter which you use, though there are more options in GSH.
Can I create a simple Java program and call the web service to create role type groups ? Which approach do you think is better or it does not really matter ?
I would create a GSH script with GroupSave… you can xml import with the new import, roles, but that is really intended for importing from an export.
Make a script like this:
grouperSession = GrouperSession.startRootSession();
role = new GroupSave(grouperSession).assignName("a:b:c").assignDisplayExtension("c").assignDescription("theDescription").assignTypeOfGroup(TypeOfGroup.role).save();
save that to a file, and run with:
I want to load quite a few roles initially. Can I use gsh –xmlimport to import the roles?
- [grouper-users] RE: Can GSH import roles?, Chris Hyzer, 01/20/2014
Archive powered by MHonArc 2.6.16.