grouper-users - [grouper-users] Re: Group custom attributes via GSH and SQL views
Subject: Grouper Users - Open Discussion List
List archive
- From: Carl Waldbieser <>
- To: Chris Hyzer <>,
- Cc: grouper-users <>
- Subject: [grouper-users] Re: Group custom attributes via GSH and SQL views
- Date: Thu, 20 Sep 2018 14:27:51 -0400 (EDT)
- Ironport-phdr: 9a23:o5sMmByqior6r4jXCy+O+j09IxM/srCxBDY+r6Qd2ugfIJqq85mqBkHD//Il1AaPAd2Eraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HRbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDtU7s6RSqt4LtqSB/wiScIKTg58H3MisdtiK5XuQ+tqwBjz4LRZoyeKfhwcb7Hfd4CS2RPXthfWS9DDYOycoUAAPYOM+lZr4f6u1sDtge+CAuwC+/z0DJEmn370Ksn2OohCwHG2wkgEsoQvXvOttX1MLoZXuCvw6nM0DrMdPJW1inm6IfWaBAqvPaBXLxqfsrV1EYgDALFgUuMpoH+OzOazOoNvHKb7uV+SeKvl3AopxtvrTey28chk4/EjZ8bxFDD8CV22oc1JdugRU5gfd6kCppQtyeVN4dsWcMtWX9otzg8x7YbupC7ZDAHxIkpyhPbcfCLboeF7xD5WOqMPDt0nm9pdb29ihqq7EStxOnxWtOp3FtFrCdJiMTAu3AX2xDN9sSLV+Nx8lqv1DuLzQzf9+5JLEIumabGNpIt2KM8m5QNvUnFAyT4gl/5jLWMeUUh4uWo6/roYrHhppKEMo90lhvxP6Y0lsy7G+s4PBIBXmiF9uSgyL3s41f1T6tXgf0riqXZsZbaKtoHpqOhHgNY3IIu5wyiAzqp0tkUh2QLIE9fdB6agIXkOUnCIPXiAve+h1Ssni1rx/fDPrD5DJTCNHzDn6r6crZ89UFT1BE+zdRF6JJaEL4AIOz8WlPttNPGFBM2LRG7w/v/BNVnyoweQX6PArOeMK7Kvl+I/OUvI/SUZIALojbxMuUl5+Xwgn8jgl8QZq2p3ZoMaHCkBfRqPV+VYXvqgtcdD2gKpAw+Q/L2iFGcSzJceWu9X79vrg08XammF4bYDqC8krGblHO+FZ1HdG1cIlGXGjH1b4iCXbEBZD/EZodrnyYYE7KsRsol1BeiuxX3zZJgL/aS9SQEuJnjktV5+r79jxY3oBd9FcDV7GiJQ2t1k3gFXXdiw6l7rUZ8x1yr1aF2iu1VCcBeof5FT1FpZtbn0+VmBoWqCUr6ddCTRQPjG43+DA==
Bert & Chris,
Thanks, that was just what I needed.
We have a target system that requires some additional information that is
mapped to *policies* rather than subjects, and I thought this would probably
be the best way to configure and convey that information.
Thanks,
Carl Waldbieser
ITS Identity Management
Lafayette College
----- Original Message -----
From: "Chris Hyzer"
<>
To: "Carl Waldbieser"
<>,
"grouper-users"
<>
Sent: Thursday, 20 September, 2018 13:04:11
Subject: RE: Group custom attributes via GSH and SQL views
gsh 0% GrouperSession grouperSession = GrouperSession.startRootSession();
gsh 1% AttributeDef attributeDef = new
AttributeDefSave(grouperSession).assignName("test:testAttribute:someAttrDef").assignCreateParentStemsIfNotExist(true).assignToGroup(true).assignAttributeDefType(AttributeDefType.attr).assignMultiAssignable(false).assignMultiValued(false).assignValueType(AttributeDefValueType.string).save();
gsh 2% AttributeDefName attributeDefName = new
AttributeDefNameSave(grouperSession,
attributeDef).assignName("test:testAttribute:someAttr").assignCreateParentStemsIfNotExist(true).save();
gsh 3% Group group = new
GroupSave(grouperSession).assignName("test:testAttribute:group").assignCreateParentStemsIfNotExist(true).save()
gsh 4%
group.getAttributeValueDelegate().assignValueString(attributeDefName.getName(),
"someValue");
edu.internet2.middleware.grouper.attr.value.AttributeValueResult:
edu.internet2.middleware.grouper.attr.value.AttributeValueResult@2f08e6d3
gsh 5%
SELECT value_string FROM grouper_aval_asn_group_v WHERE group_name =
'test:testAttribute:group' AND attribute_def_name_name =
'test:testAttribute:someAttr'
returns someValue
-----Original Message-----
From:
<>
On Behalf Of Carl Waldbieser
Sent: Thursday, September 20, 2018 12:26 PM
To: grouper-users
<>
Subject: [grouper-users] Group custom attributes via GSH and SQL views
I'd like to create a custom attribute that would be used on several groups.
I'd like the attribute to be able to hold one of several distinct enumerated
values, though I suppose I could use a plain text value. I'd like to be able
to set the attribute and value on particular groups via a GSH script, and I'd
like to be able to read the attribute via SQL using the Grouper view tables.
Any pointers on how to configure something like this? GSH examples for
setting an attribute and value on a group? And what SQL views hold the
group-attribute-value?
Thanks,
Carl Waldbieser
ITS Identity Management
Lafayette College
- [grouper-users] Group custom attributes via GSH and SQL views, Carl Waldbieser, 09/20/2018
- [grouper-users] Re: Group custom attributes via GSH and SQL views, Bee-Lindgren, Bert, 09/20/2018
- [grouper-users] RE: Group custom attributes via GSH and SQL views, Hyzer, Chris, 09/20/2018
- [grouper-users] Re: Group custom attributes via GSH and SQL views, Carl Waldbieser, 09/20/2018
Archive powered by MHonArc 2.6.19.