grouper-users - Re: [grouper-users] XML Import task
Subject: Grouper Users - Open Discussion List
List archive
- 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.
Gary
--On 09 June 2008 22:36 -0500 Tom Barton
<>
wrote:
There is, but it may take a thorough reading of
<https://wiki.internet2.edu/confluence/display/GrouperWG/Import-Export>.
And, depending on exactly how you will proceed, you might need to use a
non-default import.properties file. The default is buried in the source
at src/grouper/edu/internet2/middleware/grouper/import.properties. 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
<https://wiki.internet2.edu/confluence/display/GrouperWG/GrouperShell+%28
gsh%29>.
And Chris is working on a contributed loader, but it's not in finished
form.
Tom
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.
<http://middleware.internet2.edu/dir/groups/grouper/grouper/1.3.0/group
er-qs-1.3.0b.tgz>
Tom
Thomas M Goerger wrote:
Hi,
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?
Thanks,
Tom Goerger
University of Minnesota
Internet Services
----------------------
GW Brown, Information Systems and Computing
- XML Import task, Thomas M Goerger, 06/09/2008
- Re: [grouper-users] XML Import task, Tom Barton, 06/09/2008
- Re: [grouper-users] XML Import task, Thomas M Goerger, 06/09/2008
- Re: [grouper-users] XML Import task, Tom Barton, 06/09/2008
- Re: [grouper-users] XML Import task, GW Brown, Information Systems and Computing, 06/10/2008
- Re: [grouper-users] XML Import task, Tom Barton, 06/09/2008
- Re: [grouper-users] XML Import task, Thomas M Goerger, 06/09/2008
- Re: [grouper-users] XML Import task, Tom Barton, 06/09/2008
Archive powered by MHonArc 2.6.16.