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.StringThe workspace collection name
workspaceId
Type: System.GuidThe workspace id
expiration
Type: System.DateTimeThe token expiration 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