---
title: "Get the Custom User Data Configuration"
method: GET
path: "/groups/{groupId}/apps/{appId}/custom_user_data"
tags: ["custom-user-data"]
---

# Get the Custom User Data Configuration

`GET /groups/{groupId}/apps/{appId}/custom_user_data`

Get the [Custom User
Data](https://www.mongodb.com/docs/atlas/app-services/users/enable-custom-user-data/)
configuration for an Atlas App Services App.

## Response `200`

Ok

- CustomUserDataConfig
  - `database_name` string — The name of the database that contains custom user data.
  - `collection_name` string — The name of the collection that contains custom user data.
  - `user_id_field` string — The name of a field that appears in every custom user data document and that contains the user account ID of each document's corresponding user.
  - `enabled` boolean — If `true`, custom user data is enabled.
  - `mongo_service_id` string — The _id value of a linked MongoDB data source. You can list services with the [Get all services endpoint](#operation/adminListServices). Data sources are services whose `type` is "mongodb-atlas". Use the `_id` value for the data source you want to link to the Trigger.
  - `on_user_creation_function_id` string — The `_id` value of a [user creation function](https://www.mongodb.com/docs/atlas/app-services/users/enable-custom-user-data/#std-label-user-creation-function) that runs whenever a new user registers.

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
