Skip to content

Approve an access request

PUT
/api/v4/groups/{id}/access_requests/{user_id}/approve

Approves an access request for a specified user in a group.

id
required
string

The ID or URL-encoded path of the group owned by the authenticated user

user_id
required
integer

The user ID of the access requester

Media type application/json
object
access_level

A valid access level (defaults: 30, the Developer role)

integer
default: 30 nullable

Created

Media type application/json
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
access_level
string
created_at
string
created_by
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
expires_at
string
group_saml_identity
object
provider
string
extern_uid
string
saml_provider_id
string
group_scim_identity
object
extern_uid
string
group_id
string
active
string
email
string
is_using_seat
string
override
string
membership_state
string
member_role
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": 1,
"username": "raymond_smith",
"name": "Raymond Smith",
"state": "active",
"created_at": "2012-10-22T14:13:35Z",
"access_level": "20"
}

Bad Request

Not Found