How do I send users directly to a Sharepoint Online site with Okta? Skip to main content
https://support.okta.com/help/answers?id=906f0000000i0lpiak&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Laurel NicholesLaurel Nicholes (Okta, Inc.) 

How do I send users directly to a Sharepoint Online site with Okta?

If you are looking for a way to send users directly to a Sharepoint Online site collection or web page when federated with Okta, then you may need to know about Office 365 Smart Links. In this example, we will show how to federate with Okta and push users to a specified location within your SharePoint online instance.
  • Obtain the value of the PassiveLogOnUri. (This can be easily found in the PowerShell Script on theView Setup Instructions page.)
    • Example: https://[[Org]].oktapreview.com/app/office365/k2y5gkdjXLYDHRTPRSZX/sso/wsfed/passive
  • Append the following parameter string value to the PassiveLogOnUri.
    • ?wa=signin1.0&wtrealm=urn:federation:MicrosoftOnline&wctx=wa%3Dwsignin1.0%26wreply%3D
  • To continue with our example, the new URL should now be:
    • https://[[Org]].oktapreview.com/app/office365/k2y5gkdjXLYDHRTPRSZX/sso/wsfed/passive?wa=signin1.0&wtrealm=urn:federation:MicrosoftOnline&wctx=wa%3Dwsignin1.0%26wreply%3D
  • Next, we add a double encode URL. This value will be equal to the SharePoint default site and a ReturnUrl parameter that will target the desired landing page.
    • For example, if your desired result is for end users to land on the Accounting home page located at https://[[TENANT]].sharepoint.com/sites/Accounting/Home.aspx. Then you would double encode the following URL:
      • https://[[TENANT]].sharepoint.com/_forms/default.aspx?ReturnUrl=/sites/Accounting/Home.aspx
    • The double encoded value would look like:
      • https%253A%252F%252F[[TENANT]].sharepoint.com%252F_forms%252Fdefault.aspx%253FReturnUrl%253D%252Fsites%252FAccounting%252FHome.aspx
Bringing the entire example together results in an Office 365 Smart Link that can be used as a bookmark to directly link to a site within Sharepoint Online.
  • https://[[Org]].oktapreview.com/app/office365/k2y5gkdjXLYDHRTPRSZX/sso/wsfed/passive?wa=signin1.0&wtrealm=urn:federation:MicrosoftOnline&wctx=wa%3Dwsignin1.0%26wreply%3Dhttps%253A%252F%252F[[TENANT]].sharepoint.com%252F_forms%252Fdefault.aspx%253FReturnUrl%253D%252Fsites%252FAccounting%252FHome.aspx

 
Jerry WoodJerry Wood
Shouldn't the wa=signin1.0 be wa=wsignin1.0?
Michel BoudewijnsMichel Boudewijns
Thanks both for this answer. Works perfectly!
Van HuynhVan Huynh
This everyone.  This also appears to work perfectly for us as well, as our onedrive tenant mismatches from our main O365 Federated tenant.