---
title: "Create a role assignment"
method: POST
path: "/Organizations/{OrganizationSid}/RoleAssignments"
tags: ["RoleAssignments"]
---

# Create a role assignment

`POST /Organizations/{OrganizationSid}/RoleAssignments`

Create a role assignment for the given organization

## Path parameters

- `OrganizationSid` string, OrganizationSid, required

## Request body

- PublicApiCreateRoleAssignmentRequest
  - `role_sid` string, IamRoleSid, required — Twilio Role Sid representing assigned role
  - `scope` string, Sid, required — Twilio Sid representing scope of this assignment
  - `identity` string, Sid, required — Twilio Sid representing identity of this assignment
  - `resource_type` string, nullable — The resource type for resource-level role assignments
  - `resource_id` string, nullable — The resource id for resource-level role assignments

## Response `201`

Created

- PublicApiRoleAssignmentResponse
  - `sid` string, IamRoleAssignmentSid — Twilio Role Assignment Sid representing this role assignment
  - `role_sid` string, IamRoleSid — Twilio Role Sid representing assigned role
  - `scope` string, Sid — Twilio Sid representing identity of this assignment
  - `identity` string, Sid — Twilio Sid representing scope of this assignment
  - `resource_type` string, nullable — The resource type for resource-level role assignments
  - `resource_id` string, nullable — The resource id for resource-level role assignments

## Other responses

- `400` — Bad request or business rules violation
- `403` — Unauthorized

---

[API](https://skmtc.net/twilio/apis/iam-organizations.md) · [All operations](https://skmtc.net/twilio/apis/iam-organizations/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/twilio/iam-organizations/revisions/fff41bbd8220/schema)
