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: Jeffrey Williams <>
  • To: Andre Daniels <>
  • Cc: Grouper-Users <>
  • Subject: Re: [grouper-users] Custom indexId?
  • Date: Fri, 2 Aug 2019 10:54:21 -0400

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)

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).


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


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

Jeffrey Williams 
Identity Engineer
Identity & Access Services

Archive powered by MHonArc 2.6.19.

Top of Page