Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Custom indexId?

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Custom indexId?


Chronological Thread 
  • From: Andre Daniels <>
  • To: Jeffrey Williams <>
  • Cc: Andre Daniels <>, Grouper-Users <>
  • Subject: Re: [grouper-users] Custom indexId?
  • Date: Fri, 2 Aug 2019 13:29:40 -0700

Awesome, thanks! 

I used the web service and did terrible things with the description field... } : )

On Fri, Aug 2, 2019 at 7:54 AM Jeffrey Williams <> wrote:
I've only done this with a few groups in dev, but it can be done via gsh.  If this is a one-time import, you could write a script that creates the gsh script that builds the groups and updates them with their correct gidNumbers.

groovy:000> gs=GrouperSession.startRootSession()

and for each group, something like:
groovy:000> addGroup("uncg:apps:AAA_test", "gidNumberTestID", "gidNumberTestName")
groovy:000> group = GroupFinder.findByName(gs, "uncg:apps:AAA_test:gidNumberTestID")
groovy:000> group.setIdIndex(newIndexValue)
groovy:000> group.store();

Likewise, I'm guessing that one could update the idIndex attribute via a WS call as well, it's not something I've looked into.


 


On Thu, Aug 1, 2019 at 9:38 PM Andre Daniels <> wrote:
We want to import a bunch of posix groups into Grouper. Is there a way to create them with their current gid's? I saw a snippet of documentation that suggested this was possible but I do not see the indexId parameter in the Web Service documentation.


When creating groups, you can specify the id index (if the user is allowed to do so, and the index is not in use).

<wsGroup>
        <name>aStem:newGroup5</name>
        <idIndex>12345</idIndex>
        ...
      </wsGroup>

Has anyone done this already? Is there a better way to do this?



Andre

--
Andre Daniels 
Sr. Developer/Security Analyst
University of California Santa Cruz
(831) 459-1980


--
Jeffrey Williams 
Identity Engineer
Identity & Access Services
https://its.uncg.edu




--
Andre Daniels 
Sr. Developer/Security Analyst
University of California Santa Cruz
(831) 459-1980



Archive powered by MHonArc 2.6.19.

Top of Page