public static CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, string username = null, IEnumerable |
||
workspaceCollectionName | string | The workspace collection name |
workspaceId | string | The workspace id |
reportId | string | The report id |
username | string | The RLS username |
roles | IEnumerable |
The RLS roles |
return |
public static PowerBIToken CreateReportEmbedToken(string workspaceCollectionName, string workspaceId, string reportId, string username = null, IEnumerable<string> roles = null)
{
var expires = DateTime.UtcNow.Add(TimeSpan.FromSeconds(DefaultExpirationSeconds));
return CreateReportEmbedToken(workspaceCollectionName, workspaceId, reportId, expires, username, roles);
}
PowerBIToken::CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, System.DateTime expiration, string username = null, IEnumerable |
|
PowerBIToken::CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, System.TimeSpan slidingExpiration, string username = null, IEnumerable |