grouper-users - RE: [grouper-users] gsh permissionAssignments
Subject: Grouper Users - Open Discussion List
List archive
- 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
- [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- Re: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Gagné Sébastien, 02/11/2013
- Re: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: RE: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Gagné Sébastien, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
Archive powered by MHonArc 2.6.16.