Subject: Grouper Users - Open Discussion List
- From: Jeffrey Crawford <>
- To: Chris Hyzer <>
- Cc: Gouper Users List <>
- Subject: Re: [grouper-users] Acting as a user in gsh?
- Date: Sat, 17 Oct 2015 21:54:43 -0700
// Error: unable to evaluate command: Sourced file: inline evaluation of: ``myself = SubjectFinder.findByIdAndSource("G000000001", "ucscidm", true);'' : Method Invocation SubjectFinder.findByIdAndSource
// See error log for full stacktrace
// caused by: java.lang.IllegalStateException:
// There is no open GrouperSession detected. Make sure to start a grouper session (e.g. GrouperSession.startRootSession() if you want to use a root session ) before calling this method
myself = SubjectFinder.findByIdAndSource("G000000001", "ucscidm", true);
Are you on 2.2.2?
I don’t think you need the first line. Find the subject, and start the session. Let me know how it goes
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);
addComposite(group name, composite type, left group name, right group name)
Both pilots and IT professionals require training and currency before charging into clouds!
- [grouper-users] Acting as a user in gsh?, Jeffrey Crawford, 10/16/2015
Archive powered by MHonArc 2.6.16.