group::add_member (public)
group::add_member [ -no_perm_check ] [ -no_automatic_membership_rel ] \ -group_id group_id -user_id user_id [ -rel_type rel_type ] \ [ -member_state member_state ]
Defined in packages/acs-subsite/tcl/group-procs.tcl
Adds a user to a group, checking that the rel_type is permissible given the user's privileges, Can default both the rel_type and the member_state to their relevant values.
- Switches:
- -no_perm_check (optional, boolean)
- avoid permission check
- -no_automatic_membership_rel (optional, boolean)
- Use this flag, when we do not want to add automatically a membership_rel (e.g. in DotLRN)
- -group_id (required)
- group, to which a member should be added
- -user_id (required)
- user, which should be added to a group
- -rel_type (optional)
- relationship type to be used (defaults to membership_rel)
- -member_state (optional)
- state, in which member should be added (gets default via group::default_member_state)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- acs_subsite_expose_bug_1144, acs_subsite_check_composite_group, subsite_api, test_inheritance_and_custom_permissions