Group
Link: Group - Github
What a Group is
A Group creates organizational structure inside one Virtual Organization (VO). It is a subset of the members of that VO, and it cannot be moved outside the VO (or VO hierarchy) it was created in. Groups exist because access is always granted to Groups on Resources, never to a person on its own.
Groups are arranged as a tree. Every Group can have a set of child Groups (subgroups) and at most one parent Group. A Group without a parent is a top-level group. The level is visible in the name itself: in A:B:C, the Group C is a subgroup of A:B, and B is a subgroup of A. The colon is the separator of the levels, which is why it cannot appear inside a Group name.
There is one exception to the tree. In every VO there is a system created Group named members. It is a system Group that contains all memberships of users in relation to the VO, and it cannot be moved, updated or deleted.
Membership in a Group
Membership in a Group can be managed manually by managers, or automatically by synchronization. The lifecycle of a membership in a Group has two states: ACTIVE, and INACTIVE when it has expired or was changed manually.
A Member can be valid in the VO and still be expired in one of its groups, so check the Group state as well and not only the state of the Member. Vice versa - Member can be expired in the VO and still active in one of its groups, so regaining access to VO after years, might lead to unexpected surprises. The states of the Member itself are described in the article Member.
Who can work with a Group
The role Group admin can do any operation with the Group: update it, remove it, move it, include it in another Group, and change its attributes. A manager of a Group also manages all subgroups on the lower levels of the tree, which means the whole subtree.
There are other roles associated with Group - observer, membership manager, etc. See more in Perun roles and their rights (ADD LINK)
Working with one specific value is decided by the attribute itself, not only by the role. Even a manager who may manipulate the Group entity can be blocked from changing a particular attribute on it, for example an email address.
Properties
id, the unique identifier of the Group. This value cannot be changed.
uuid, the standardized unique identifier used between Perun instances. This value cannot be changed.
voId, the VO the Group belongs to. A Group cannot be moved outside this space, so this value cannot be changed.
parentGroupId, the identifier of the Group one level higher in the tree, which is the parent Group. This value can be changed, because a Group can be moved to any place in the tree structure of its VO.
name, the unique name of the Group inside the level of the tree where it was created. In the default configuration it allows alphanumeric characters A-Za-z, numbers 0-9, the dash -, the space, the underscore \_ and the dot .. The colon is not allowed because it marks a level. The length is not limited, but a short name is easier to read wherever the Group is shown. This value can be changed by updating the Group.
description, any text that identifies the purpose of the Group. This value can be changed by updating the Group.
audit fields recording when and by whom the Group was created and last modified.
The short name of a Group is not a stored value. Perun AAI takes the part of the name after the last colon, so the short name of A:B:C is C. When you set a short name, only the last segment of the name changes and the parent levels stay the same.
When Perun AAI compares two Groups, it orders them by name and ignores case, falling back to the identifier otherwise. Two Group records count as the same Group when their identifier and name both match.
Attributes on a Group
Information that belongs to a Group is stored as attributes. Attributes can be set on a single entity or on a pair of entities, which is how Perun AAI stores settings that only exist in the relationship between two entities. For a Group the relevant cases are:
group attributes, values that belong to the Group itself.
group-resource attributes, values that belong to the relationship between one Group and one Resource.
member-group attributes, values that belong to the relationship between one Member and one Group.
Attribute names are structured, for example urn:perun:group:attribute-def:def:A, where the namespace identifies the entity and the attribute type. Because the namespace carries the entity, an attribute name alone tells you which kind of object it is set on.
Which attributes a Group must fill in is not a fixed list. Perun AAI derives it from the Resources the Group can reach, from the Services running on those Resources, and from the attributes those Services declare as required. A Group that is allowed on more Resources therefore needs more values filled in. as Perun rejects groups with an empty value.