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 ?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,402 questions
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 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.

    0 comments No comments

0 additional answers

Sort by: Most helpful