Selective access to a Blob storage container in one resource group from a Synapse Workspace in a different Resource Group

Nimesh Raj Manandhar 41 Reputation points
2023-09-07T17:27:07.1833333+00:00

I have two Resource Groups (RG1 & RG2) created under one subscription. In RG1, I have a medallion based (Bronze, Silver & Gold) architecture setup in the Azure Blob Storage container. I use ADF to move data from source to various Bronze, Silver and Gold containers. In the second RG2, I have a Synapse Workspace created for a certain group of people who will be working with some sensitive data plus some data I have collected in the RG1.Silver.FolderX container.

Question: How can I configure the Synapse Workspace users from RG2 to only be able to see the data in the Folder X under RG1. Silver? I do not want them to access any other folders under SILVER, Bronze and Gold.

Problem: I have been able to grant access to the desired folder in RG1.Silver but they are also seeing folders and contents of other container as well.

Current Permission Setup:

RG1:

  • Bronze ==> No permission granted
    • FolderW ==> No permission granted
      • FolderX ==> No permission granted
  • Silver ==> Only Execute permission
    • FolderW ==> No permission granted
      • FolderX ==>READ and EXECUTE permission

Any help is appreciated.

Nimesh.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2023-09-08T12:01:17.5566667+00:00

    Azure Blob Storage does support Azure AD-based authentication and RBAC (Role-Based Access Control), which means you can assign Azure roles to a security principal (user, group, service principal, or managed identity) at a specific scope.

    Ensure that Azure AD-based authentication is in use. You need to onboard your storage account to use Azure AD.

    Then, assign RBAC Roles:

    • Storage Blob Data Reader: This role allows for read access to the blob data.
    • Storage Blob Data Contributor: This role allows for read, write, and delete access on blob data. But be careful with this one as you might not want to grant delete permissions.

    And for the setup :

    • At the Storage Account level (RG1): Do not grant any specific data-related permissions here to the Synapse Workspace users. If they have inherited permissions from the subscription or resource group, consider revoking or adjusting those.
    • At the Container level (Silver): Revoke any specific permissions granted here, if any. It sounds like they have at least execute permissions on Silver, which might be cascading down.
    • At the Directory/Blob level (FolderX): Grant the Storage Blob Data Reader role to the specific Azure AD group/users from the Synapse Workspace.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.