Attempting to use Custom Group Type to get a value

Maybe I am going about this wrong, but I set up a custom group type with an attribute of "segment".

The intention is to get that "attribute" from the loggedinuser(), allowing the queries to be based on the value of the "segment".

If I limit the groups to only include the ones I KNOW have "segment" it works.

But if I inquire a group that does not have that attribute, (the intention being that admins do not have that limitation)

it fails due to missing attribute.

Additionally the user could belong to more then one "segment" and not belong to others.

I have everything setup, but I am getting nowhere with retrieving the "segment" from the Group Type of the group.

  Discussion posts and replies are publicly visible