[GeoNetwork-users] Creating Users Via XML Service

Hello,

I am trying to create a user through geonetwork XML Services user.update by
providing the following request XML in Geonetwork 2.10.2

*<?xml version=\"1.0\"
encoding=\"UTF-8\"?><request><operation>newuser</operation><username>mdeditor</username><password>password007</password><profile>Editor</profile><surname>Editor</surname><name>Metadata</name><city></city><country></country>metadataeditor@anonymised.com<groups>4</groups></request>
*

The user is successfully created and when I check the rows in the database a
record is present in users table and there seems to be no record inserted
into usergroups table. When I do it through GUI records are inserted to both
the tables

Am I doing anything wrong here or is it a bug? Can anyone please advise?

Regards
Udhaya

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Creating-Users-Via-XML-Service-tp5089829.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

I got this working by changing the group node to corresponding profile type
node like <groups_Reviewer>3</groups_Reviewer> or
<groups_Editor>2 </groups_Editor> and I was able to see the records
created in both the user and usergroups table

On Tue, Nov 19, 2013 at 3:25 PM, udhaya <udhay.forum@anonymised.com> wrote:

Hello,

I am trying to create a user through geonetwork XML Services user.update by
providing the following request XML in Geonetwork 2.10.2

*<?xml version=\"1.0\"

encoding=\"UTF-8\"?><request><operation>newuser</operation><username>mdeditor</username><password>password007</password><profile>Editor</profile><surname>Editor</surname><name>Metadata</name><city></city><country></country>
metadataeditor@anonymised.com<groups>4</groups></request>
*

The user is successfully created and when I check the rows in the database
a
record is present in users table and there seems to be no record inserted
into usergroups table. When I do it through GUI records are inserted to
both
the tables

Am I doing anything wrong here or is it a bug? Can anyone please advise?

Regards
Udhaya

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Creating-Users-Via-XML-Service-tp5089829.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up
now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork