Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Listing existing attributes in grouper Shell

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Listing existing attributes in grouper Shell


Chronological Thread 
  • From: Jeffrey Crawford <>
  • To: "Hyzer, Chris" <>
  • Cc: Gouper Users List <>
  • Subject: Re: [grouper-users] Listing existing attributes in grouper Shell
  • Date: Wed, 17 Feb 2016 11:41:40 -0800

Something like the following:

grouperSession = GrouperSession.startRootSession();
getGroupAttrs("org:path:loader:group");
  grouper_loader_LDAP = "enabled", ""
  grouper_loader_LDAP_Type = "enabled", "LDAP_SOMPLE"
  grouper_loader_LDAP_Filter = "enabled", "(accountStatus=Active)"
  grouper_loader_LDAP_Quartz_Cron = "enabled", "0 0/6 9-18 * * ?"
  grouper_loader_LDAP_search_base_DN = "enabled", "ou=People"
  grouper_loader_LDAP_server_ID = "enabled", "ldap-source"
  grouper_loader_LDAP_source_ID = "enabled", "iamsystem"
  grouper_loader_LDAP_subject_attribute_name = "enabled", "uidNumber"

Then call the following to set a new schedule:
setGroupAttr("org:path:loader:group", "grouper_loader_LDAP_Quartz_Cron", "enabled", "0 1/6 9-18 * * ?");


Jeffrey

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

On Wed, Feb 17, 2016 at 8:10 AM, Hyzer, Chris <> wrote:

Send me some pseudo code (pretend methods as you think they should exist) of what you want to do

 

Thanks

Chris

 

From: Jeffrey Crawford [mailto:]
Sent: Wednesday, February 17, 2016 10:38 AM


To: Hyzer, Chris <>
Cc: Gouper Users List <>
Subject: Re: [grouper-users] Listing existing attributes in grouper Shell

 

This is not exactly doing what I had hoped. Basically I'm looking to programmatically read attributes on groups that are loader jobs (some SQL some are LDAP), and then change what I want.

I'm sure I'm asking the wrong question here :)


Jeffrey E. Crawford
ITS Application Administrator (IdM)
831-459-4365

 

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

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

 

On Fri, Feb 12, 2016 at 7:13 AM, Hyzer, Chris <> wrote:

See the attributeDelegate…  this is from a test case

 

    assertTrue(group0.getAttributeDelegate().hasAttribute(attributeDefName0));

    List<String> values = group0.getAttributeValueDelegate().retrieveValuesString(attributeDefName0.getName());

    assertEquals(2, values.size());

    assertTrue(values.contains("A"));

    assertTrue(values.contains("B"));

 

also

 

group0.getAttributeDelegate().retrieveAttributes()

 

 

 

 

From: Jeffrey Crawford [mailto:]
Sent: Friday, February 12, 2016 1:41 AM
To: Hyzer, Chris <>
Cc: Gouper Users List <>
Subject: Re: [grouper-users] Listing existing attributes in grouper Shell

 

sorry ask the question and then lost track. I'm using grouper shell. I wanted to see the current values and then set new schedule settings via the shell.


Jeffrey E. Crawford
ITS Application Administrator (IdM)
831-459-4365

 

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

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

 

On Wed, Feb 10, 2016 at 8:29 AM, Hyzer, Chris <> wrote:

Is this for a WS call or an API call?  What are you trying to do?  Do you want values too or just see if an attribute is assigned?

 

From: [mailto:] On Behalf Of Jeffrey Crawford
Sent: Friday, February 05, 2016 3:20 PM
To: Gouper Users List <>
Subject: [grouper-users] Listing existing attributes in grouper Shell

 

I've see getGroupAttr but is there something like getGroupAttrs which lists the attributes that exist on a group entry?


Jeffrey

C.

 

 

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

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

 

 





Archive powered by MHonArc 2.6.16.

Top of Page