PowerBIToken.CreateDevToken Method (String, Guid, TimeSpan)

 

Creates a developer token with default expiration used to access Power BI platform services

Namespace:   Microsoft.PowerBI.Security
Assembly:  Microsoft.PowerBI.Core (in Microsoft.PowerBI.Core.dll)

Syntax

public static PowerBIToken CreateDevToken(
    string workspaceCollectionName,
    Guid workspaceId,
    TimeSpan slidingExpiration
)

Parameters

  • workspaceCollectionName
    Type: System.String

    The workspace collection name

  • slidingExpiration
    Type: System.TimeSpan

    The timespan to append to the current date/time

Return Value

Type: Microsoft.PowerBI.Security.PowerBIToken

The Power BI access token

See Also

CreateDevToken Overload
PowerBIToken Class
Microsoft.PowerBI.Security Namespace

Return to top