Skip to content

RBAC error when viewing all users' workspaces #15114

Closed
@dannykopping

Description

@dannykopping

Given:

  • an org
  • a group with a member assigned (with only a "Member" role)
  • a role with all permissions afforded and assigned to the member
  • a template owned by an org
  • a workspace using the org's template

When attempting to view all workspaces in an org as the above member, I encounter this error:
Image

This stems from:

users, err := api.Database.GetUsersByIDs(ctx, userIDs)
if err != nil {
return workspaceBuildsData{}, xerrors.Errorf("get users: %w", err)
}

Metadata

Metadata

Assignees

Labels

customer-reportedBugs reported by enterprise customers. Only humans may set this.s1Bugs that break core workflows. Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions