This is a continuation somewhat of my previous post on using a generic oAuth script to access EWS but in this post I'm going to look at how you can authenticate as a Guest user to a tenant you have been granted Guest access to and then access the resources like a Unified Office365 Group or Teams( because Teams uses Groups) via the Graph API. To Access another tenant as a Guest (considering that Guest Access is enabled and you have accepted the invitation and logged in at least once with that user) you need to generate an Access Token against the Target tenants endpoints. To do this you can discover what a particular tenants Authentication and Token endpoints are by making a request like the following $RequestURL = " https://login.windows.net/{0}/.well-known/openid-configuration " - f $TargetDomain $Response = Invoke - WebRequest - Uri $RequestURL $JsonResponse = ConvertFrom - Json $Response . Content This will return a result like the following Out of thi
Pushing the Envelope in Messaging and Office 365 Development