Skip to Content.
Sympa Menu

grouper-users - [grouper-users] gsh permissionAssignments

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] gsh permissionAssignments

Chronological Thread 
  • From: mohan shamachar <>
  • To:
  • Subject: [grouper-users] gsh permissionAssignments
  • Date: Mon, 11 Feb 2013 13:57:13 -0500 (EST)

Hi Chris,

My PHP code still has problem assigning the role. I was able to get the UI to
work by creating the resource attribute.

I'd like to try and see if the gsh works. Is this the correct way to use gsh
to assign the permission?. Thank you.

gsh 0% grouperSession = GrouperSession.startRootSession();

gsh 1% userRole = GroupFinder.findByName(grouperSession,
"AOMS:roles:reporter", true);

gsh 2% permission =
AttributeDefNameFinder.findByName("AOMS:permissions:level1permission", true);

gsh 3% userRole.getPermissionRoleDelegate().assignRolePermission("report",
permission, PermissionAllowed.ALLOWED);


Archive powered by MHonArc 2.6.16.

Top of Page