Question

Is there a way to create a container on Azure storage which is visible only to the user logging with Admin credentials?

Other users should not be able to view the container.

Was it helpful?

Solution

What you're trying to accomplish is not possible out-of-the-box. You would need to some additional work for that in your application simply because an "administrator" in your application has nothing to do with "administrator" on your storage account and Windows Azure Storage still does not support role based thingies where you fetch certain data based on the authorization.

One possible thing you could do is have a relationship between a user and a blob container somewhere in your database. When a user logs in, you're anyway authenticating your user. At that time, get a list of blob containers which this particular user is allowed to see. Then you fetch all blob containers from your storage account but only show those blob containers which the logged in user can see and are present in your storage account.

Hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top