Highlighted
Micro Focus Expert
Micro Focus Expert
1178 views

How to give admin right to a PO for a user

Hello!

I desperately try to give a user admin right to a PO and always fails.

This is the curl command I try:

curl -s -k -X PUT -H "Content-Type: application/xml" --user admin:pass https://server:9710/gwadmin-service/domains/mydomain/postoffices/mypo/acl --data @-

And this is the xml:

<object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><id>USER.mydomain.mypo.myuser</id><rights>WRITE</rights></object>

I just get a BAD_REQUEST error.
I tried a few things already without any luck.

Please advise!

TIA,
Gellért
Labels (1)
Tags (3)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: How to give admin right to a PO for a user


got this to work using json as the content-type:



curl -k --user admin:pass -H "Content-Type:application/json" --data "{\"add\":[\"USER.Dom.PO.UserID\"]} https://server:9710/gwadmin-service/domains/mydomain/postoffices/mypo/acl



didn't have time to see what the xml would look like.



--Morris




>>> gehorvath<gehorvath@no-mx.forums.microfocus.com> 1/15/2016 6:36 AM >>>







Hello!




I desperately try to give a user admin right to a PO and always fails.




This is the curl command I try:




curl -s -k -X PUT -H "Content-Type: application/xml" --user admin:pass
https://server:9710/gwadmin-service/domains/mydomain/postoffices/mypo/acl



--data @-




And this is the xml:




<object

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><id>USER.mydomain.mypo.myuser</id><rights>WRITE</rights></object>




I just get a BAD_REQUEST error.

I tried a few things already without any luck.




Please advise!




TIA,

Gellért







--

gehorvath

------------------------------------------------------------------------
gehorvath's Profile: https://forums.novell.com/member.php?userid=329


View this thread: https://forums.novell.com/showthread.php?t=496267
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: How to give admin right to a PO for a user

Thank you Morris, it works!

Gellért
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.