PowerBIToken.CreateProvisionToken Method (String, TimeSpan)
Creates a provision token with a sliding expiration used to manages workspaces witin a workspace collection
Namespace: Microsoft.PowerBI.Security
Assembly: Microsoft.PowerBI.Core (in Microsoft.PowerBI.Core.dll)
Syntax
public static PowerBIToken CreateProvisionToken(
string workspaceCollectionName,
TimeSpan slidingExpiration
)
Parameters
workspaceCollectionName
Type: System.StringThe workspace collection name
slidingExpiration
Type: System.TimeSpanThe timespan to append to the current date/time
Return Value
Type: Microsoft.PowerBI.Security.PowerBIToken
The Power BI access token
See Also
CreateProvisionToken Overload
PowerBIToken Class
Microsoft.PowerBI.Security Namespace
Return to top