Sharepoint 2019 -Current logged user mailID provides empty value

Tamil Selvan L 1 Reputation point
2022-05-02T06:42:01.703+00:00

Url : _api/web/currentuser,
Response : Please review the attached image
198009-issue.png

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.
1,970 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,430 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,501 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 19,881 Reputation points Microsoft Vendor
    2022-05-02T09:20:16.907+00:00

    Hi @Tamil Selvan L ,
    Per my test, the email can be empty. Please check email in people and groups.
    198223-image.png
    198184-image.png
    You can update email by following script

    Set-SPUser -Identity "i:0#.w|Domain\username" -Email "email@domain.com" -Web https://sharepoint-site-url  
    

    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.



  2. Tamil Selvan L 1 Reputation point
    2022-05-11T04:16:40.84+00:00

    I have sorted out the issue ,Thanks for the help and support