merill / graph-permissions-explorer

Repository for public site hosting graph permissions
https://graphpermissions.merill.net
21 stars 6 forks source link

Is it possible to add PermissionId in the CSV ? #10

Open youssefs opened 2 months ago

youssefs commented 2 months ago

Hello Merill,

Amazing work you've done here. Thank you very much!

Is it possible to have a PermissionId Column in the CSV? I think this Microsoft Graph permissions reference page is a great reference to make this possible.

Idk if feasable from your end, but a proposal for how to insert this information in the table is to replace the True/False statements in the ApplicationPermission/DelegatePermission columns by the Id where applicable (No ID means False, ID means True and we'll get the ID).

Many thanks!

merill commented 1 month ago

Can you share a few examples of what you want to see in PermissionId? Tx.

youssefs commented 1 month ago

Hello, Thanks for your quick response.

Here you have 3 examples of each possible use case:

In the current CSV format the same permissions are is as follows:

PermissionName,ApplicationPermission,DelegatedPermission
Application.Read.All,True,True
Application.ReadWrite.OwnedBy,True,False
ApprovalSolution.Read,False,True

My proposal:

PermissionName,ApplicationPermission,DelegatedPermission
Application.Read.All,9a5d68dd-52b0-4cc2-bd40-abcf44ac3a30,c79f8feb-a9db-4090-85f9-90d820caa0eb
Application.ReadWrite.OwnedBy,18a4783c-866b-4cc7-a460-3d5e5662c884,-
ApprovalSolution.Read,-,b0df437d-d341-4df0-aa3e-89ca81a1207f

Where the IDs are obtained from this MS reference

Thank you.

merill commented 1 month ago

Got it. Yes this is something I can look into adding.

I won't be able to commit to a time but I can look into it.