---
title: "GET /role_user_assignments/{id}/"
method: GET
path: "/role_user_assignments/{id}/"
tags: ["role_user_assignments"]
---

# GET /role_user_assignments/{id}/

`GET /role_user_assignments/{id}/`

Use this endpoint to give a user permission to a resource or an organization.
The needed data is the user, the role definition, and the object id.
The object must be of the type specified in the role definition.
The type given in the role definition and the provided object_id are used
to look up the resource.

After creation, the assignment cannot be edited, but can be deleted to
remove those permissions.

## Path parameters

- `id` integer, required

## Response `200`

- RoleUserAssignment
  - `id` integer, required
  - `url` string, required
  - `related` object, required
  - `summary_fields` object, required
  - `created` string, date-time, required — The date/time this resource was created
  - `created_by` integer, nullable, required — The user who created this resource
  - `content_type` 'eda.activation' | 'eda.auditrule' | 'eda.decisionenvironment' | 'eda.edacredential' | 'eda.eventstream' | 'eda.project' | 'eda.rulebook' | 'eda.rulebookprocess' | 'shared.organization' | 'shared.team', required — * `eda.activation` - Activation * `eda.auditrule` - Audit Rule * `eda.decisionenvironment` - Decision Environment * `eda.edacredential` - Eda Credential * `eda.eventstream` - Event Stream * `eda.project` - Project * `eda.rulebook` - Rulebook * `eda.rulebookprocess` - Rulebook Process * `shared.organization` - Organization * `shared.team` - Team
  - `object_id` string, nullable — Primary key of the object this assignment applies to, null value indicates system-wide assignment
  - `object_ansible_id` string, uuid, nullable — Resource id of the object this role applies to. Alternative to the object_id field.
  - `role_definition` integer, required — The role definition which defines permissions conveyed by this assignment
  - `user` integer
  - `user_ansible_id` string, uuid, nullable — Resource id of the user who will receive permissions from this assignment. Alternative to user field.

---

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