I am working with Azure Functions, and I would like to know how I can see the permissions of a user for a certain directory or file.
To get the info of ACL I am following the next documentation: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-directory-file-acl-python (For the conexion I have used Connect by using an account key option)
I am able to get the next information:
{
'accept_ranges': None,
'cache_control': None,
'content_disposition': None,
'content_encoding': None,
'content_language': None,
'content_length': None,
'content_range': None,
'content_type': None,
'content_md5': None,
'date': datetime.datetime(XXXXX),
'etag': '"4545454545"',
'last_modified': datetime.datetime(XXXXX),
'request_id': 'XXXXX',
'version': '2019-02-02',
'resource_type': None,
'properties': None,
'owner': '123',
'group': '123',
'permissions': 'rwxr-x---',
'acl': 'user: : rwx,
group: : r-x,
other: : ---',
'lease_duration': None,
'lease_state': None,
'lease_status': None,
'error_code': None
}
This returns generic information, but what I would like to know is how can I get permission information for a specific user. I know how can I get user id or thr user's group id, but not how to relate to ACL.
Maybe I need to use an API?
Thanks beforehand!