Skip to content

Commit

Permalink
fix: add tenantid to role assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Aug 4, 2022
1 parent 3a0aa36 commit a5633eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/list-role-assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func listRoleAssignments(ctx context.Context, client client.AzureClient, roles <
var (
roleAssignments = models.RoleAssignments{
RoleDefinitionId: id.(string),
TenantId: client.TenantInfo().TenantId,
}
count = 0
filter = fmt.Sprintf("roleDefinitionId eq '%s'", id.(string))
Expand Down
1 change: 1 addition & 0 deletions models/role-assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ import (
type RoleAssignments struct {
RoleAssignments []azure.UnifiedRoleAssignment `json:"roleAssignments"`
RoleDefinitionId string `json:"roleDefinitionId"`
TenantId string `json:"tenantId"`
}

0 comments on commit a5633eb

Please sign in to comment.