Azure Synapse Analytics RoleAssignments API

The RoleAssignments API from Azure Synapse Analytics — 2 operation(s) for roleassignments.

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/workspace
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/sqlpools
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/bigdatapool
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/pipeline
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/spark
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/monitoring
📖
Documentation
https://learn.microsoft.com/en-us/azure/synapse-analytics/synapse-link/
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/role-assignments
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/notebook
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/dataset
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/linked-service
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/data-flow
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/sql-script
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/trigger
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/spark-job-definition
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/managed-private-endpoints
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/integration-runtimes
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/library
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/git-integration
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/ip-firewall-rules
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/keys
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/private-endpoint-connections
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/private-link-hubs
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/kusto-pools
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/azure-ad-only-authentications
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/spark-configuration
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/data-flow-debug-session
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/credential
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/kql-script
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/link-connection

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-workspace-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-sql-pool-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-spark-pool-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-pipeline-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-spark-batch-job-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-role-assignment-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-notebook-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-dataset-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-linked-service-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-trigger-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/microsoft-azure-synapse-analytics/refs/heads/main/json-schema/azure-synapse-analytics-firewall-rule-schema.json

Other Resources

OpenAPI Specification

microsoft-azure-synapse-analytics-roleassignments-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Azure Synapse Analytics - Access Control AzureADOnlyAuthentications RoleAssignments API
  description: Manage role assignments, role definitions, and access control for Synapse workspace resources. Supports Synapse role-based access control for fine-grained permissions.
  version: '2020-12-01'
  contact:
    name: Microsoft Azure Support
    url: https://azure.microsoft.com/en-us/support/
  license:
    name: Microsoft
    url: https://azure.microsoft.com/en-us/support/legal/
servers:
- url: https://{workspaceName}.dev.azuresynapse.net
  description: Synapse Data Plane
  variables:
    workspaceName:
      description: The workspace name.
      default: myworkspace
security:
- azure_auth:
  - user_impersonation
tags:
- name: RoleAssignments
paths:
  /roleAssignments:
    get:
      operationId: RoleAssignments_ListRoleAssignments
      summary: Azure Synapse Analytics List role assignments
      description: List role assignments.
      tags:
      - RoleAssignments
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: roleId
        in: query
        description: Synapse Built-In Role Id.
        schema:
          type: string
      - name: principalId
        in: query
        description: Object ID of the AAD principal or security-group.
        schema:
          type: string
      - name: scope
        in: query
        description: Scope of the Synapse Built-In Role.
        schema:
          type: string
      - name: x-ms-continuation
        in: header
        description: Continuation token.
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the role assignments.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleAssignmentDetailsList'
        default:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /roleAssignments/{roleAssignmentId}:
    get:
      operationId: RoleAssignments_GetRoleAssignmentById
      summary: Azure Synapse Analytics Get role assignment
      description: Get role assignment by role assignment Id.
      tags:
      - RoleAssignments
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: roleAssignmentId
        in: path
        required: true
        description: The ID of the role assignment.
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the role assignment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleAssignmentDetails'
        default:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    put:
      operationId: RoleAssignments_CreateRoleAssignment
      summary: Azure Synapse Analytics Create role assignment
      description: Create role assignment.
      tags:
      - RoleAssignments
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: roleAssignmentId
        in: path
        required: true
        description: The ID of the role assignment.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleAssignmentRequest'
      responses:
        '200':
          description: Successfully created the role assignment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleAssignmentDetails'
        default:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: RoleAssignments_DeleteRoleAssignmentById
      summary: Azure Synapse Analytics Delete role assignment
      description: Delete role assignment by role assignment Id.
      tags:
      - RoleAssignments
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: roleAssignmentId
        in: path
        required: true
        schema:
          type: string
      - name: scope
        in: query
        description: Scope of the Synapse Built-In Role.
        schema:
          type: string
      responses:
        '200':
          description: Successfully deleted the role assignment.
        '204':
          description: Role assignment not found.
        default:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    RoleAssignmentRequest:
      type: object
      required:
      - roleId
      - principalId
      - scope
      properties:
        roleId:
          type: string
          format: uuid
          description: Role ID of the Synapse Built-In Role.
        principalId:
          type: string
          format: uuid
          description: Object ID of the AAD principal or security-group.
        scope:
          type: string
          description: Scope at which the role assignment is created.
        principalType:
          type: string
          description: Type of the principal.
          enum:
          - User
          - Group
          - ServicePrincipal
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
    RoleAssignmentDetails:
      type: object
      properties:
        id:
          type: string
          description: Role Assignment ID.
        roleDefinitionId:
          type: string
          format: uuid
          description: Role Definition ID.
        principalId:
          type: string
          format: uuid
          description: Object ID of the AAD principal or security-group.
        scope:
          type: string
          description: Scope at which the role assignment is created.
        principalType:
          type: string
          description: Type of the principal.
          enum:
          - User
          - Group
          - ServicePrincipal
    RoleAssignmentDetailsList:
      type: object
      properties:
        count:
          type: integer
          description: Number of role assignments.
        value:
          type: array
          items:
            $ref: '#/components/schemas/RoleAssignmentDetails'
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      schema:
        type: string
        default: '2020-12-01'
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
          scopes:
            user_impersonation: impersonate your user account