assign comment or suggestive changes role to a user in sharing a word doc to a user

Rajesh Jha 0 Reputation points
2025-01-16T13:22:11.8266667+00:00

https://learn.microsoft.com/en-us/graph/api/driveitem-invite?view=graph-rest-1.0&tabs=http

in documentation there are only 2 roles listed in read and write i want to share a word document using this api in comment/suggestive-mode role (like if i am sharing this doc with an user he/she cannot make changes in real document but they can comment and they can make suggestive changes (track changes)). can you give me a role name or any method to do so it is very urgent for our business.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,854 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,218 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 38,111 Reputation points Microsoft Vendor
    2025-01-17T02:54:05.6266667+00:00

    Hi @Rajesh Jha,

    Per my test, if you want to comment on a file, you will need at least edit permission to the file. I feel regretful to inform you that it turns out to be a by-design one. As a workaround, you could require content approval and turn on track changes. Then the person who has to approve the document can accept or reject individual changes once the document comes to them.

    You could follow the steps to specify items in a SharePoint library that require approval on SharePoint sites.

    1. Select Settings , and then Library Settings.
    2. To open the Versioning Settings page, under General Settings, select Versioning settings. User's image
    3. In the Content Approval section, select Yes in answer to the Require content approval for submitted items? In the Document Version History section, specify whether you want SharePoint to create versions when a file is edited. You can also choose to limit the number of versions that are retained. In the Draft Item Security section, determine which users can see draft items in the document library. Versioning choices dialog box

    Here is the document for details

    https://support.microsoft.com/en-us/office/require-approval-of-items-in-a-list-or-library-cd0761c4-8c3f-4ea2-9435-13c28aa23d08#:~:text=To%20open%20the%20Versioning%20Settings,when%20a%20file%20is%20edited.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.