PowerBIToken.CreateDevToken Method (String, Guid, DateTime)

 

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,
    DateTime expiration
)

Parameters

  • workspaceCollectionName
    Type: System.String

    The workspace collection name

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