admins_only - the enterprise admin, co-admins, group’s group admin
admins_and_members - all admins and group members
all_managed_users - all managed users in the enterprise
Also in admin UI there is Permission Setting on group page with also 3 options, but they don’t match.
When creating group with API, this is how chosen options are reflected in UI: admins_only → Admins only admins_and_members → Admins only all_managed_users → Company
But I can’t figure out they way to set Permission Setting to “Group members” no matter what options I pass through API, how can I do this?
Permission Setting in UI of the created group will still be “Admins Only”. Also at least in UI its gonna be same if we pass “admin_only” to “member_viewability_level”. So no matter what I pass to “member_viewability_level”, it never becomes “Group Members” in UI.
But I think I figured it out, “Permission Setting” of the created group only becomes “Group Members” when I set both “invitability_level” and “member_viewability_level” to “admins_and_members” with query like this:
If one of “invitability_level” or “member_viewability_level” is missing in the query, group will be created with “Admins Only” permission setting.
I think I am fine with this as it solves the problem, but its quiet confusing as it never mentioned in docs (or I missed it somewhere) that Permission Setting depends both on “invitability_level” “member_viewability_level” in API.