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

Abdul Saif Babu 61 Reputation points
2021-04-01T05:12:56.62+00:00

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

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

Microsoft 365 and Office | SharePoint | For business | Windows

Answer accepted by question author
MichaelHan-MSFT 18,136 Reputation points
2021-04-01T06:36:58.323+00:00

Hi @Abdul Saif Babu ,

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.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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