members
Retrieve a direct project member
Retrieves a specified member of a project. Returns only direct members and not inherited members through ancestor groups.
get/api/v4/projects/{id}/members/{user_id}
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The project ID
user_idinteger required
The user ID of the member
Response
Retrieve a direct project member
Example response
{
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root",
"created_by": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"member_role": {
"id": 2,
"group_id": 2,
"name": "Custom guest",
"description": "Guest user who can also read_code",
"base_access_level": 40
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.