Get-SPOTenantPreAuthSettings
Gets the configuration of pre-authentication.
Syntax
Get-SPOTenantPreAuthSettings []
Description
Gets the configuration of pre-authentication.
Note
What is pre-authentication?
SharePoint includes self-issued tokens in URLs called pre-authentication URLs (also known as tempauth URLs) to provide temporary access to a SharePoint resource, which helps support more rich user experiences. For example, a common scenario is downloading a file using a URL that includes a token in the tempauth
query parameter like the following:
https://<tenant>.sharepoint.com/sites/samplesite/_layouts/15/download.aspx?UniqueId=<id>&tempauth=v1.ey...
But this feature is currently being deprecated. You can use the related Set-SPOTenantPreAuthSettings to control the use of pre-authentication in various use cases.
Examples
Example 1
Get-SPOTenantPreAuthSettings
This example returns all the pre-authentication settings for the tenant as an object.
Example 2
Get-SPOTenantPreAuthSettings | ConvertTo-Json
Gets all the pre-authentication settings for the tenant. Note that this example uses ConvertTo-Json
to display the settings in JSON format since more complex Allow or Deny lists may be hard to read as an object.
Inputs
None
Outputs
System.Object