---
title: "List smb user resources"
method: GET
path: "/api/smb/usersgroups"
tags: ["SMB"]
---

# List smb user resources

`GET /api/smb/usersgroups`

List all smb usersgroups resources

        :return: Returns list of usersgroups
        :rtype: List[Dict]

## Response `200`

OK

- object[]
  - `intent` string — Desired state of the resource, e.g., 'present' or 'removed'
  - `linked_to_cluster` string — Optional string containing a cluster ID. If set, the resource is linked to the cluster and will be automatically removed when the cluster is removed
  - `resource_type` string — ceph.smb.usersgroups
  - `users_groups_id` string — A short string identifying the usersgroups resource
  - `values` object — Required object containing users and groups information
    - `groups` object[], required — List of group objects, each containing a name
      - `name` string, required — The name of the group
    - `users` object[], required — List of user objects, each containing a name and password
      - `name` string, required — The user name
      - `password` string, required — The password for the user

## Other responses

- `400` — Operation exception. Please check the response body for details.
- `401` — Unauthenticated access. Please login first.
- `403` — Unauthorized access. Please check your permissions.
- `500` — Unexpected error. Please check the response body for the stack trace.

---

[API](https://skmtc.net/ceph/apis/ceph-rest-api.md) · [All operations](https://skmtc.net/ceph/apis/ceph-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ceph/ceph-rest-api/versions/b03ae23c3806/schema)
