I am using Datalake: Connect by using Azure Active Directory (Azure AD) to authenticate DataLake to an AD app. Also adding ACL principal to same App (Ex. mockFunc....) to provide restricted access. When I am giving permission via Azure portal, system is adding a guid, marked in green. It's not object id of App neither Client Id.
Permissions are working perfectly when assigned from Azure Portal. But, I am facing issue to extract this Id when I am setting permission from code , (doc ref: Set the ACL of a directory)
I need this strange Id to set in following code.
IList<PathAccessControlItem> accessControlList
= PathAccessControlExtensions.ParseAccessControlList("user::---,group::---,other::---,user:<865bfefd-b-Mysterious-Id>:r-x");
I can only get get this id from inspecting the code on ACL window and extract developer windows of browser. When I use this in id code works perfectly.
How to get this Id associated to Azure AD App, as I need to work in different environment, I can't go to developer window every-time to get this strange id?
Datalake ACL
AD App



