diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/checkAccessSynapseRbac.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/checkAccessSynapseRbac.json index 7dcbd04aa09f..b45b64e16fdb 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/checkAccessSynapseRbac.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/checkAccessSynapseRbac.json @@ -22,7 +22,7 @@ "tags": [ "CheckPrincipalAccess" ], - "operationId": "CheckPrincipalAccess", + "operationId": "RoleAssignments_CheckPrincipalAccess", "description": "Check if the given principalId has access to perform list of actions at a given scope.", "x-ms-examples": { "Check access": { @@ -141,7 +141,7 @@ "description": "List of actions.", "type": "array", "items": { - "$ref": "#/definitions/Action" + "$ref": "#/definitions/RequiredAction" } }, "scope": { @@ -150,7 +150,7 @@ } } }, - "Action": { + "RequiredAction": { "description": "Action Info", "type": "object", "required": [ @@ -170,9 +170,15 @@ }, "CheckPrincipalAccessResponse": { "description": "Check access response details", - "type": "array", - "items": { - "$ref": "#/definitions/CheckAccessDecision" + "type": "object", + "properties": { + "AccessDecisions": { + "description": "To check if the current user, group, or service principal has permission to read artifacts in the specified workspace.", + "type": "array", + "items": { + "$ref": "#/definitions/CheckAccessDecision" + } + } } }, "SubjectInfo": { diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/examples/CheckAccessSynapseRbac.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/examples/CheckAccessSynapseRbac.json index 6b4ddb1f1df1..0239b25fe0c2 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/examples/CheckAccessSynapseRbac.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/examples/CheckAccessSynapseRbac.json @@ -25,30 +25,32 @@ }, "responses": { "200": { - "body": [ - { - "accessDecision": "Allowed || NotAllowed", - "actionId": "Action 1", - "roleAssignment": { - "id": "00000000-0000-0000-0000-000000000000", - "roleDefinitionId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000", - "scope": "workspaces/exampleWorkspace", - "principalType": "User || Group || ServicePrincipal" - } - }, - { - "accessDecision": "Allowed || NotAllowed", - "actionId": "Action 1", - "roleAssignment": { - "id": "00000000-0000-0000-0000-000000000000", - "roleDefinitionId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000", - "scope": "workspaces/exampleWorkspace", - "principalType": "User || Group || ServicePrincipal" + "body": { + "accessDecisions": [ + { + "accessDecision": "Allowed || NotAllowed", + "actionId": "Action 1", + "roleAssignment": { + "id": "00000000-0000-0000-0000-000000000000", + "roleDefinitionId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "workspaces/exampleWorkspace", + "principalType": "User || Group || ServicePrincipal" + } + }, + { + "accessDecision": "Allowed || NotAllowed", + "actionId": "Action 1", + "roleAssignment": { + "id": "00000000-0000-0000-0000-000000000000", + "roleDefinitionId": "00000000-0000-0000-0000-000000000000", + "principalId": "00000000-0000-0000-0000-000000000000", + "scope": "workspaces/exampleWorkspace", + "principalType": "User || Group || ServicePrincipal" + } } - } - ] + ] + } }, "default": { "body": { diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleAssignments.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleAssignments.json index 247cb292486d..a60101742c85 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleAssignments.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleAssignments.json @@ -187,6 +187,9 @@ }, { "$ref": "#/parameters/RoleAssignmentIdParameter" + }, + { + "$ref": "#/parameters/ScopeParameter" } ], "responses": { diff --git a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleDefinitions.json b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleDefinitions.json index b4e68820be5c..2e181c485223 100644 --- a/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleDefinitions.json +++ b/specification/synapse/data-plane/Microsoft.Synapse/preview/2020-08-01-preview/roleDefinitions.json @@ -79,6 +79,9 @@ "text/json" ], "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, { "$ref": "#/parameters/RoleDefinitionIdParameter" }