Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Acting as a user in gsh?

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Acting as a user in gsh?


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Jeffrey Crawford <>, Gouper Users List <>
  • Subject: RE: [grouper-users] Acting as a user in gsh?
  • Date: Sat, 17 Oct 2015 00:46:46 +0000
  • Accept-language: en-US

Are you on 2.2.2?

 

Try

 

GrouperSession.start(myself);

 

I don’t think you need the first line.  Find the subject, and start the session.  Let me know how it goes

 

Thanks,

Chris

 

From: [mailto:] On Behalf Of Jeffrey Crawford
Sent: Friday, October 16, 2015 6:43 PM
To: Gouper Users List
Subject: [grouper-users] Acting as a user in gsh?

 

I was trying to execute gsh commands as myself to keep the audit log accurate for some operations that I knew might take too long to execute over the ui: The following commands don't give me any errors but when I looked at the audit log afterwards it said that the operations were performed by "GrouperSysAdmin". Am I doing this wrong?

grouperSession = GrouperSession.startRootSession();
myself = SubjectFinder.findByIdAndSource("G00000001", "ucscidm", true);
grouperSession.setSubject(myself);
addComposite(group name, composite type, left group name, right group name)


Jeffrey

 

Both pilots and IT professionals require training and currency before charging into clouds!

---------------------------------------




Archive powered by MHonArc 2.6.16.

Top of Page