OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
657 stars 93 forks source link

[Outlook] Can we get manifest permission level by 'Office.context.mailbox.initialData.permissionLevel'? #2130

Closed SWei1234 closed 3 months ago

SWei1234 commented 2 years ago

Message from office-js bot: We’re closing this issue because it has been inactive for a long time. We’re doing this to keep the issues list manageable and useful for everyone. If this issue is still relevant for you, please create a new issue. Thank you for your understanding and continued feedback.

Just a quick question: Can we get the manifest's permission level by 'Office.context.mailbox.initialData.permissionLevel' ?

I see it's match manifest's permission setting. But the question is, I didn't see the doc about this. Did Microsoft support this attribute? Have a wiki for it?

exextoc commented 2 years ago

Thanks for the post @SWei1234 . Can you please let us know the use case of this information so that we can help better?

AlexJerabek commented 2 years ago

Tagging @ElizabethSamuel-MSFT to follow for potential documentation updates.

SWei1234 commented 2 years ago

Hi @exextoc and @ElizabethSamuel-MSFT Sometimes we want to run some function in add-in only manifest have set a high level permission. At this time, we might need to know which permission level we have set in manifest. If we can't know the level we might need to make two different add-in(most code is same) Or get an error/exception when trying run this function. Thanks

exextoc commented 2 years ago

This information is currently not exposed. If you need this feature and wish to file a request, please use the link: https://aka.ms/M365dev-suggestions.