Create Admin Role on the GitLab instance
POST
/api/v4/admin_member_roles
Authorizations
Section titled “ Authorizations ”Request Body
Section titled “ Request Body ” Media type application/json
object
name
Name for role (default: ‘Admin role - custom’)
string
description
Description for role
string
read_admin_cicd
Read CI/CD details for runners and jobs in the Admin Area.
boolean
read_admin_groups
Read group details in the Admin Area.
boolean
read_admin_projects
Read project details in the Admin Area.
boolean
read_admin_subscription
Read subscription details in the Admin area.
boolean
read_admin_monitoring
Read system information such as background migrations, health checks, and Gitaly in the Admin Area.
boolean
read_admin_users
Read the user list and user details in the Admin area.
boolean
Example generated
{ "name": "example", "description": "example", "read_admin_cicd": true, "read_admin_groups": true, "read_admin_projects": true, "read_admin_subscription": true, "read_admin_monitoring": true, "read_admin_users": true}Responses
Section titled “ Responses ”Created
Media type application/json
object
id
integer format: int64
group_id
integer format: int64
name
string
description
string
base_access_level
integer
apply_security_scan_profiles
boolean
admin_merge_request
boolean
archive_project
boolean
admin_ai_catalog_item_consumer
boolean
destroy_package
boolean
remove_project
boolean
remove_group
boolean
manage_security_policy_link
boolean
admin_ai_catalog_item
boolean
admin_compliance_framework
boolean
admin_cicd_variables
boolean
manage_deploy_tokens
boolean
manage_group_access_tokens
boolean
admin_group_member
boolean
admin_integrations
boolean
manage_merge_request_settings
boolean
manage_project_access_tokens
boolean
admin_protected_branch
boolean
admin_protected_environments
boolean
admin_push_rules
boolean
admin_runners
boolean
admin_security_attributes
boolean
admin_terraform_state
boolean
admin_vulnerability
boolean
admin_web_hook
boolean
read_agent_artifacts
boolean
read_compliance_dashboard
boolean
read_security_scan_profiles
boolean
read_virtual_registry
boolean
update_sec_ai_workflow_settings
boolean
read_admin_cicd
boolean
read_crm_contact
boolean
read_dependency
boolean
read_admin_groups
boolean
read_admin_projects
boolean
read_code
boolean
read_runners
boolean
read_security_attribute
boolean
read_admin_subscription
boolean
read_admin_monitoring
boolean
read_admin_users
boolean
read_vulnerability
boolean
Example
{ "id": 2, "group_id": 2, "name": "Custom guest", "description": "Guest user who can also read_code", "base_access_level": 40, "apply_security_scan_profiles": false, "admin_merge_request": false, "archive_project": false, "admin_ai_catalog_item_consumer": false, "destroy_package": false, "remove_project": false, "remove_group": false, "manage_security_policy_link": false, "admin_ai_catalog_item": false, "admin_compliance_framework": false, "admin_cicd_variables": false, "manage_deploy_tokens": false, "manage_group_access_tokens": false, "admin_group_member": false, "admin_integrations": false, "manage_merge_request_settings": false, "manage_project_access_tokens": false, "admin_protected_branch": false, "admin_protected_environments": false, "admin_push_rules": false, "admin_runners": false, "admin_security_attributes": false, "admin_terraform_state": false, "admin_vulnerability": false, "admin_web_hook": false, "read_agent_artifacts": false, "read_compliance_dashboard": false, "read_security_scan_profiles": false, "read_virtual_registry": false, "update_sec_ai_workflow_settings": false, "read_admin_cicd": false, "read_crm_contact": false, "read_dependency": false, "read_admin_groups": false, "read_admin_projects": false, "read_code": false, "read_runners": false, "read_security_attribute": false, "read_admin_subscription": false, "read_admin_monitoring": false, "read_admin_users": false, "read_vulnerability": false}Bad Request
Unauthorized