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: "Sachdeva, Vivek" <>
  • To: "" <>
  • Subject: [grouper-users] Re: Assign Limits via gsh
  • Date: Tue, 6 May 2014 16:57:23 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;

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