Skip to content

Instantly share code, notes, and snippets.

View Paul-PSDigital's full-sized avatar

Paul Sellars Paul-PSDigital

  • PS Digital Ltd
  • London
View GitHub Profile
@Paul-PSDigital
Paul-PSDigital / PowerBi RLS
Created December 13, 2017 11:12
PowerBI RLS authentication structs in Go
// PowerBITokenRequest the request to specify when generating a powerbi token
type PowerBITokenRequest struct {
AccessLevel string `json:"accessLevel"`
Identities []PowerBIIdentity
}
// PowerBIIdentity the identity to assume when authenticating with powerbi
type PowerBIIdentity struct {
Username int64 `json:"username"`
Roles []string `json:"roles"`