Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission under manifest file #4586

Closed
ishanig11 opened this issue Jun 19, 2024 · 5 comments
Closed

Permission under manifest file #4586

ishanig11 opened this issue Jun 19, 2024 · 5 comments
Assignees
Labels
Area: add-ins platform Issue related to the add-ins platform Needs: attention 👋 Waiting on Microsoft to provide feedback Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)

Comments

@ishanig11
Copy link

Hi,

I have built office js plugin to read and write office files to one of server.
I dont want to give ReadWriteDocument permission to this add-in as this permission covers ReadAllDocument permission also. So client is hesitant to provide this permission.

Is there anyway by which we can just give Read & Write Document permission on context document?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Jun 19, 2024
@shanshanzheng-dev
Copy link

Hi @ishanig11 Thanks for your question. I have found a reference for you: https://learn.microsoft.com/en-us/office/dev/add-ins/develop/requesting-permissions-for-api-use-in-content-and-task-pane-add-ins
https://learn.microsoft.com/en-us/javascript/api/manifest/permissions?view=common-js-preview
I think [Restricted | ReadDocument | ReadAllDocument | WriteDocument | ReadWriteDocument] is working.

@shanshanzheng-dev shanshanzheng-dev added the Needs: author feedback Waiting for author (creator) of Issue to provide more info label Jun 20, 2024
@Rick-Kirkham Rick-Kirkham added Area: add-ins platform Issue related to the add-ins platform and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Jun 20, 2024
@ishanig11
Copy link
Author

we can define only one permission at a time. So how can I give read & write context document permission without using ReadWriteDocument (I dont want to use this permission)

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Jun 21, 2024
@shanshanzheng-dev
Copy link

shanshanzheng-dev commented Jun 24, 2024

Hi @ishanig11 Seem this is the only way to give ReadWriteDocument permission to add-in. please check this reference: https://learn.microsoft.com/en-us/office/dev/add-ins/develop/requesting-permissions-for-api-use-in-content-and-task-pane-add-ins

@shanshanzheng-dev shanshanzheng-dev added the Needs: author feedback Waiting for author (creator) of Issue to provide more info label Jun 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label Jun 28, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

Copy link
Contributor

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: add-ins platform Issue related to the add-ins platform Needs: attention 👋 Waiting on Microsoft to provide feedback Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)
Projects
None yet
Development

No branches or pull requests

3 participants