grouper-users - [grouper-users] Re: Load a group member from a data source, and then forget it in N days
Subject: Grouper Users - Open Discussion List
List archive
[grouper-users] Re: Load a group member from a data source, and then forget it in N days
Chronological Thread
- From: "Waldbieser, Carl" <>
- To: "Hyzer, Chris" <>
- Cc: Gouper Users List <>
- Subject: [grouper-users] Re: Load a group member from a data source, and then forget it in N days
- Date: Thu, 4 Aug 2016 09:55:11 -0400 (EDT)
Chris,
In concept I understand what you're saying. But I have no idea how to use
the rule API to actually achieve that.
I imagine I'd want the "overall" group to have the same kind of setup as some
other rules I've seen-- act as the Grouper root user, check that there is a
membership add. But after that I am stuck on the action to take.
actAs = SubjectFinder.findRootSubject()
group = getGroup(session, "overall")
attribAssign =
group.getAttributeDelegate().addAttribute(RuleUtils.ruleAttributeDefName()).getAttributeAssign()
attribValueDelegate = attribAssign.getAttributeValueDelegate()
attribValueDelegate.assignValue(RuleUtils.ruleActAsSubjectSourceIdName(),
actAs.getSourceId())
attribValueDelegate.assignValue(RuleUtils.ruleActAsSubjectIdName(),
actAs.getId())
attribValueDelegate.assignValue(RuleUtils.ruleCheckTypeName(),
RuleCheckType.membershipAdd.name())
# Not sure what goes next?
# How to say "add the same subject to group, 'some:path:target_group'"?
Thanks,
Carl
----- Original Message -----
From: "Hyzer, Chris"
<>
To: "waldbiec"
<>,
"Gouper Users List"
<>
Sent: Wednesday, August 3, 2016 9:05:29 AM
Subject: RE: Load a group member from a data source, and then forget it in N
days
I would try to have a group which is loaded. This will always be in sync
with the external source. Have a shadow group which would be your “overall”
group. Put a rule on the loaded group that if a user is added, add them to
the shadow group with an expire date. Make sure the daemon is set to false.
If you cant do both of those in one rule, then have a rule that adds the
user to the other group (daemon off), and a rule on the overall group which
says when a user is added set a 30 day delete date (daemon false). Ok? Let
me know if you have issues and I can try it out.
Thanks
Chris
From: Waldbieser, Carl
[mailto:]
Sent: Wednesday, August 03, 2016 7:03 AM
To: Hyzer, Chris
<>;
Gouper Users List
<>
Subject: RE: Load a group member from a data source, and then forget it in N
days
Chris,
Yes. It remains in the source.
Thanks,
Carl
Sent from my Samsung Captivate Glide on AT&T
"Hyzer, Chris"
<<mailto:>>
wrote:
After the subject expires, is it still in the source?
-----Original Message-----
From:
<mailto:>
[mailto:]
On Behalf Of Waldbieser, Carl
Sent: Tuesday, August 02, 2016 3:36 PM
To: Gouper Users List
<<mailto:>>
Subject: [grouper-users] Load a group member from a data source, and then
forget it in N days
I have a data source that I want to use to populate a group membership.
The trick is, once a subject is added to the target group in Grouper, I want
that membership to expire in 30 days, and I don't want the Grouper loader to
re-load the subject after that time.
Is it possible to achieve this with some kind of rule?
Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College
- [grouper-users] Load a group member from a data source, and then forget it in N days, Waldbieser, Carl, 08/02/2016
- [grouper-users] RE: Load a group member from a data source, and then forget it in N days, Hyzer, Chris, 08/03/2016
- [grouper-users] RE: Load a group member from a data source, and then forget it in N days, Waldbieser, Carl, 08/03/2016
- [grouper-users] RE: Load a group member from a data source, and then forget it in N days, Hyzer, Chris, 08/03/2016
- [grouper-users] Re: Load a group member from a data source, and then forget it in N days, Waldbieser, Carl, 08/04/2016
- Re: [grouper-users] Load a group member from a data source, and then forget it in N days, Jeffrey Eaton, 08/04/2016
- Re: [grouper-users] Load a group member from a data source, and then forget it in N days, Waldbieser, Carl, 08/04/2016
- RE: [grouper-users] Load a group member from a data source, and then forget it in N days, Hyzer, Chris, 08/04/2016
- Re: [grouper-users] Load a group member from a data source, and then forget it in N days, Jeffrey Eaton, 08/04/2016
- Re: [grouper-users] Load a group member from a data source, and then forget it in N days, Waldbieser, Carl, 08/04/2016
- Re: [grouper-users] Load a group member from a data source, and then forget it in N days, Jeffrey Eaton, 08/04/2016
- [grouper-users] Re: Load a group member from a data source, and then forget it in N days, Waldbieser, Carl, 08/04/2016
- [grouper-users] RE: Load a group member from a data source, and then forget it in N days, Hyzer, Chris, 08/03/2016
- [grouper-users] RE: Load a group member from a data source, and then forget it in N days, Waldbieser, Carl, 08/03/2016
- [grouper-users] RE: Load a group member from a data source, and then forget it in N days, Hyzer, Chris, 08/03/2016
Archive powered by MHonArc 2.6.19.