Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] gsh permissionAssignments

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] gsh permissionAssignments


Chronological Thread 
  • From: Chris Hyzer <>
  • To: mohan shamachar <>, "" <>
  • Subject: RE: [grouper-users] gsh permissionAssignments
  • Date: Mon, 11 Feb 2013 19:59:01 +0000
  • Accept-language: en-US
  • Authentication-results: sfpop-ironport05.merit.edu; dkim=neutral (message not signed) header.i=none

Looks good to me. Just start the grouper session as the user who is
connecting to the web service instead of root session...

Thanks,
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of mohan shamachar
Sent: Monday, February 11, 2013 1:57 PM
To:

Subject: [grouper-users] gsh permissionAssignments

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);

best,
mohan



Archive powered by MHonArc 2.6.16.

Top of Page