Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] XML Import task

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] XML Import task

Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: Tom Barton <>, Thomas M Goerger <>
  • Cc:
  • Subject: Re: [grouper-users] XML Import task
  • Date: Tue, 10 Jun 2008 08:44:04 +0100

If you look at the import schema there is a choice between data and dataList tags. dataList can include group and / or stem tags which can list members, or subjects with privileges, as appropriate. So, you should be able to minimally represent groups using a name attribute and list members per the QuickStart example. Groups can be in any order and you don't need to nest groups within stems.

This method will not attempt to create missing groups or update group attributes.


--On 09 June 2008 22:36 -0500 Tom Barton

There is, but it may take a thorough reading of
And, depending on exactly how you will proceed, you might need to use a
non-default file. The default is buried in the source
at src/grouper/edu/internet2/middleware/grouper/ Copy
it to wherever you run your xml.import ant task and modify it as needed.

Alternatively, you could do a quick and dirty conversion from flatfile to
grouper shell commands that you give to gsh in batch. See

And Chris is working on a contributed loader, but it's not in finished


Thomas M Goerger wrote:
So, the quickstart xml file is indicative of the amount of information
that you need to have in order to add users to existing groups? What if
I've got groups created, and just want to add some users using a flat
file? Is there no way to just update group information using the
import-xml task?

On Mon, 9 Jun 2008, Tom Barton wrote:

The grouper QuickStart tarball has quickstart.xml in its root directory.



Thomas M Goerger wrote:

I'm trying to import a number of users to groups using the xml import
function, and I'm not sure of what information grouper is looking for
to find the groups. I'm parsing a flat file full of ldap information
into an xml document I'm creating. So, I've created a listing of some
of the group information, followed by a list of the subjects after
this. I've gotten the task to accept my xml document's formatting,
but none of the users are appearing in the database. I'm assuming
that I'm missing something in my document that is causing the problem.
What's the minimum amount of information about a group that Grouper
needs to import users through the xml-import task? All I'd like to
enter in is the name of the group, or its extension, but that doesn't
seem to work. Do you need the ID? Anybody have any examples of an
import doc that they wouldn't mind sharing?


Tom Goerger
University of Minnesota
Internet Services

GW Brown, Information Systems and Computing

Archive powered by MHonArc 2.6.16.

Top of Page