Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] getImmediateMemberships().size()

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] getImmediateMemberships().size()


Chronological Thread 
  • From: Carl Waldbieser <>
  • To: Michael Gettes <>
  • Cc: grouper-users <>
  • Subject: Re: [grouper-users] getImmediateMemberships().size()
  • Date: Thu, 23 Aug 2018 11:35:50 -0400 (EDT)
  • Ironport-phdr: 9a23:rzex6BYVUjqWPAzxP4xA1fD/LSx+4OfEezUN459isYplN5qZr8m7bnLW6fgltlLVR4KTs6sC17KJ9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa/bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhzsGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7WYNEUSndbXstJWSJPAp2yYYgNAOoPIOhXoJXyqVQPrRW5GQmhH//vyiZUiXPqx6A2z+YsHAfb1wIgBdIOt3HUoc3rOagIS+C1yLTDwjXZYPNSxDjy84nIfQ46of6SR7J7bM3cyEc1GAPBk1qfso3lMC2J2ekWt2iU9eRgWvivimE5twFxviagyt0yhYbUm4IY01bJ/jh6zoYtPdC0VUB2bNq+HJdNuCyXNZF6Tt4/T21ypSo3xb8LtYamcCUEzJkr3QPTZvOFfoSS/x7uVPydLSlkiH54YL6zmhi//Ey6xuHhWcS50kxGojdYntXWq3wA2QLf586aQfVn5EihwyyA1wXL5+FEP080ka3bJoYkwr4sjJUes17PHivsl0X4lqCXdlsr+vS06+v5eLnpuIKTN5JshgH/NKQhhNC/DPwlPgUAW2WX4/mw2bLh8EHjXblGk+c6nrTWvZ3YPcgbo7S2Aw5R0oYt8Ra/CDKm3cwWnHYdKFJKZQmIj4n3NF7SO/34Ce2wg1q2nzZr2f/GIqHhDYvXInfdjbjhYK5x61RAxwor0dBf+5VUB6kOIPLpXU/xqcTYAQEjMwCt3ubnE8ty1pkFWW+UBq+ZMbjSsUOT5u4xOeWMZYkVuCrjJPg/4f7hk2M5lUEHcaa3wJQXdSPwIvMzBkSSYXPhhp8uHHsWsxF2GOPnlEGPShZOaXL0Uq4hsGIVEoWjWKzKXITlv7WF0C26E4ZbfCgSFVmIHX3peo6sX/4CYTOfPtNs1DEISO7yGMcayRiyuVqimPJcJe3O93hd7Mq72Q==

Michael,

The scripting language is just syntactic flavor. They are all using the same
Grouper API.
`g.members` is the `members` property of the group instance. It may
literally be `Group.getMembers()` but most scripting languages will allow you
to use either the method or property form.
You should still be able to call `.size()` on it. The important bit is that
it is `members` rather than `effectiveMembers` or `immediateMembers`.

Thanks,
Carl

----- Original Message -----
From: "Michael Gettes"
<>
To: "waldbiec"
<>
Cc: "grouper-users"
<>
Sent: Thursday, 23 August, 2018 11:31:40
Subject: Re: [grouper-users] getImmediateMemberships().size()

Thanks Carl - this isn’t python - grouper shell and groovy. Is it still
g.members and someway of getting the count?

/mrg

> On Aug 23, 2018, at 11:27 AM, Carl Waldbieser
> <>
> wrote:
>
> Michael,
>
> Where `g` is a composite group, from the Python shell wrapper:
>
>>>> x = g.members
>>>> type(x)
> <type 'java.util.LinkedHashSet'>
>>>> len(x)
> 22
>>>>
>
> Thanks,
> Carl Waldbieser
> ITS Identity Management
> Lafayette College
>
> ----- Original Message -----
> From: "Michael Gettes"
> <>
> To: "grouper-users"
> <>
> Sent: Thursday, 23 August, 2018 11:01:31
> Subject: [grouper-users] getImmediateMemberships().size()
>
> I am calling getImmediateMemberships().size() and
> getEffectiveMemberships().size() on a composite and both are returning zero.
>
> Doing this from grouper groovy shell.
>
> Advice?
>
> /mrg



Archive powered by MHonArc 2.6.19.

Top of Page