Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 532a41d

Browse files
authoredJun 4, 2025··
✨ allow creation of service account at platform level (#262)
Signed-off-by: Salim Afiune Maya <[email protected]>
1 parent 3854058 commit 532a41d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎internal/provider/service_account_resource.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ func (r *ServiceAccountResource) Configure(ctx context.Context, req resource.Con
152152
}
153153

154154
func (r *ServiceAccountResource) getScope(ctx context.Context, data ServiceAccountResourceModel) string {
155-
scopeMrn := ""
155+
// default to platform level
156+
scopeMrn := "//platform.api.mondoo.app"
156157
// Give presedence to the org id
157158
if data.OrgID.ValueString() != "" {
158159
scopeMrn = orgPrefix + data.OrgID.ValueString()

0 commit comments

Comments
 (0)
Please sign in to comment.