I can create a sharing link via the POST /sites/{siteId}/drive/items/{itemId}/createLink endpoint, which works correctly. This allows editing by all members of our organization with the link however, whereas I would like only for specific users to be able to do so.
When I attempt to use the POST /sites/{siteId}/drive/items/{itemId}/invite endpoint, which appears to accomplish what I am after, I receive a 403 response with the following message:
{'code': 'notAllowed', 'message': 'The feature has been disabled. Please contact your admin to get it enabled.'}
Is anyone able to point me to the correct configuration that will enable me to use this endpoint? I am able to perform this action in the UI, so do not believe it to be an issue with settings on the site itself. I am also confused as to why I am able to share with the entire organization, but not specific members!
Kind regards,
Christopher Wilson