---
title: "Return One Custom Role in One Project"
method: GET
path: "/api/atlas/v2/groups/{groupId}/customDBRoles/roles/{roleName}"
tags: ["Custom Database Roles"]
---

# Return One Custom Role in One Project

`GET /api/atlas/v2/groups/{groupId}/customDBRoles/roles/{roleName}`

## Request

- Base URL: `https://cloud.mongodb.com`
- URL: `https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/customDBRoles/roles/{roleName}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://cloud.mongodb.com/api/oauth/token`
  - HTTP digest

Returns one custom role for the specified project.

## Path parameters

- `groupId` string, required
- `roleName` string, required

## Query parameters

- `envelope` boolean
- `pretty` boolean

## Response `200`

OK

## Other responses

- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.
- `429`: Too Many Requests.
- `500`: Internal Server Error.

---

[API](https://skmtc.dev/mongodb/apis/atlas-admin-api.md) - [All operations](https://skmtc.dev/mongodb/apis/atlas-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mongodb/apis/atlas-admin-api/revisions/e37e8ef8429f?raw)
