question

AbdulSaifBabu-7422 avatar image
0 Votes"
AbdulSaifBabu-7422 asked MichaelHan-MSFT commented

Does REST API "<site>_api/web/ensureUser('i:0#.w|<user>@domain')" work for Sharepoint 2016

We are using SP 2019, To ensure user we are using below REST API.
_api/web/ensureUser('i:0#.w|<user>@domain')

Does the above REST API support Sharepoint 2016 to ensure user ?

office-sharepoint-online
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AbdulSaifBabu-7422 ,

Is there any update on your issue? If my answer helps you, you could accept it :) It will be helpful to others who have similar issues in the future.


0 Votes 0 ·

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered

Hi @AbdulSaifBabu-7422,

Just did a test in my SharePoint 2016 , yes the REST API endpoint works for both 2016 and 2019 to ensure user.


If an Answer is helpful, please click "Accept Answer" and upvote it.
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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.