Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Verified Domains Group Level #3176

Open
@xakepnz

Description

@xakepnz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions