Open
Description
Verified Domains at the Group level
Feature request to create the attribute:allowed_email_domains_list
(Comma-separated list of email address domains to allow group access). For the Group class.
It was introduced in 17.4. GitLab Premium and Ultimate only)
The ability exists over API to query this:
curl -H "PRIVATE-TOKEN: $PAT" \
"http://127.0.0.1:3000/api/v4/groups/27" \
-s \
| jq ".allowed_email_domains_list"
"gitlab.com"
e.g.
>>> group = gl.groups.get('1337')
>>> vd = group.allowed_email_domains_list.list(get_all=True)
>>> for d in vd):
... print(d)
gitlab.com
ref: https://gitlab.com/gitlab-security-oss/cis/gitlabcis/-/issues/48
Specifications
- python-gitlab version:
5.6.0
- Gitlab server version (or gitlab.com):
GitLab Enterprise Edition 17.11.0-pre
76ac92593a5