Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Assign Limits via gsh

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Assign Limits via gsh


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "Sachdeva, Vivek" <>, "" <>
  • Subject: [grouper-users] RE: Assign Limits via gsh
  • Date: Tue, 6 May 2014 17:53:09 +0000
  • Accept-language: en-US

Looks good, I added this example to the wiki

 

https://spaces.internet2.edu/display/Grouper/Grouper+permission+limits

 

Thanks,

Chris

 

From: [mailto:] On Behalf Of Sachdeva, Vivek
Sent: Tuesday, May 06, 2014 12:57 PM
To:
Subject: [grouper-users] Re: Assign Limits via gsh

 

I think I have figured it myself. This is how I am doing it.

 

grouperSession = GrouperSession.startRootSession(); 

 

AttributeAssign attributeAssign = new PermissionFinder().addAction("Create").addPermissionName("ucla:permissions:CV").addRole("ucla:roles:english_dept_admin").assignPermissionType(PermissionEntry.PermissionType.role).findPermission(true).getAttributeAssign();

   

attributeAssign.getAttributeValueDelegate().assignValue("ucla:limits:group_id", "ucla:hierarchy:faculty");

 

Thanks,

Vivek

 

 

From: vivek sachdeva <>
Date: Tue, 6 May 2014 08:53:23 -0700
To: "" <>
Subject: Assign Limits via gsh

 

Hi ,

 

I am trying to assign limits via gsh script. I am having the following inputs.

 

Role Id  (ex: ucla:roles:english_dept_admin)

Action : (ex: Create)

Permission Name : (ex: CV)

 

I tried to find any examples but could not find. Can someone help ?

 

Thanks,

Vivek

 




Archive powered by MHonArc 2.6.16.

Top of Page