Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Re: Assign Limit via web service

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Re: Assign Limit via web service


Chronological Thread 
  • From: "Sachdeva, Vivek" <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: [grouper-users] Re: Assign Limit via web service
  • Date: Thu, 13 Feb 2014 19:25:28 +0000
  • Accept-language: en-US

Thanks Chris! It worked.  

I had sent last email to the grouper-dev-request list. Should I send to the grouper-users in the future?

Vivek

From: Chris Hyzer <>
Date: Wed, 12 Feb 2014 20:18:36 +0000
To: vivek sachdeva <>
Cc: "" <>
Subject: RE: Assign Limit via web service

I don’t see a post to the list a few days ago.

I think with limits it is best to find the permission assignment you are adding the limit to, and then to get the attributeAssignId of that, and then to set that ownerAttributeAssignId as the owner.  Then you don’t have to set any other owner fields, etc.  Also, on a limit, the action must be “assign” or maybe blank.  The limit has an owner which can have any action, but the action of the limit assignment is “assign” or hopefully just blank.

 

There should be something in the response body that has more information about how it is an invalid query.  Or something in the logs of the WS server?

 

Thanks

Chris

 

 

From: Sachdeva, Vivek []
Sent: Wednesday, February 12, 2014 2:58 PM
To: Chris Hyzer
Subject: Assign Limit via web service

 

Hi Chris,

 

I am trying to assign a limit via web service. I am trying it using WsSampleAssignAttributesWithValueRestLite class.

 

I am getting INVALID_QUERY result code. I am trying different combination of parameters. Can you please help? I sent this email to the dev list a few days ago but got no response. 

 

WsRestAssignAttributesLiteRequest wsRestAssignAttributesLiteRequest 

        = new WsRestAssignAttributesLiteRequest();

      wsRestAssignAttributesLiteRequest.setActAsSubjectId("GrouperSystem");

      wsRestAssignAttributesLiteRequest.setAttributeAssignType("group");

      wsRestAssignAttributesLiteRequest.setWsAttributeDefNameName("ucla:ucla_perms:CV");

      wsRestAssignAttributesLiteRequest.setWsOwnerGroupName("ucla:ucla_roles:VCAP");

      wsRestAssignAttributesLiteRequest.setAttributeAssignOperation("assign_attr");

      wsRestAssignAttributesLiteRequest.setAttributeAssignValueOperation("add_value");

      wsRestAssignAttributesLiteRequest.setValueSystem("ucla");

      wsRestAssignAttributesLiteRequest.setAction("read");

       wsRestAssignAttributesLiteRequest.setWsOwnerAttributeDefName("Grouper Administration:attribute:permissionLimits:labels contains");

 

 

Thanks,

 

Vivek




Archive powered by MHonArc 2.6.16.

Top of Page