Hello @Surbhi,
Hope you're doing well.
'The tenant for tenant guid does not exist' occurs when your Azure AD does not have Office 365 account to work. Therefore it cannot have /events
. /users
works because that is an Azure AD endpoint.
Please refer to this post for detailed information:
https://learn.microsoft.com/en-us/answers/questions/804104/index.html
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".