How to give file read access by URL to only those accounts who can access the container by keeping container private

Zouraiz 1 Reputation point
2022-12-21T13:19:51.69+00:00

I have pdf files in a container. The container has an access level set to (Private no anonymous access). I have changed the access level to (blob anonymous read access for blob only). now I can read the file by copying its URL to another tab. but the problem is anyone who has access to the URL can see the file. Can we restrict access in a way that the document should only open for those accounts that have access to open it and those accounts that do not have access to it, it does not open keeping the container access level (Private no anonymous access).

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-12-21T21:04:50.25+00:00

    Hi @Zouraiz , the best way to do this is by generating a SAS token/url. You can configure the settings of these tokens to determine who can access the blob. This document has some more information for other resources as well. Please let me know if you have any questions and I can help you further.

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James

    0 comments No comments

Your answer

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