From ec84851c12906bf3f3e325c955ec739b9225e1c7 Mon Sep 17 00:00:00 2001 From: "c1-dev-bot[bot]" <2740113+c1-dev-bot[bot]@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:49:17 +0000 Subject: [PATCH] feat: include AWS account ID in account display name Include the AWS account ID in parentheses alongside the account name in the resource display name. This makes account IDs visible and searchable in the ConductorOne app catalog for AWS SSO requests. Before: "Production" After: "Production (123456789012)" This applies to both SSO-enabled accounts (account.go) and IAM-only accounts (account_iam.go). --- pkg/connector/account.go | 3 ++- pkg/connector/account_iam.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/connector/account.go b/pkg/connector/account.go index 5d62770c..5869acae 100644 --- a/pkg/connector/account.go +++ b/pkg/connector/account.go @@ -91,8 +91,9 @@ func (o *accountResourceType) List(ctx context.Context, _ *v2.ResourceId, pt *pa l.Debug("aws-connector: account found", zap.String("name", name), zap.String("account_id", accountId), zap.String("account_status", string(status))) profile := accountProfile(ctx, account) + displayName := fmt.Sprintf("%s (%s)", name, accountId) userResource, err := resourceSdk.NewAppResource( - name, + displayName, resourceTypeAccount, accountId, []resourceSdk.AppTraitOption{resourceSdk.WithAppProfile(profile)}, diff --git a/pkg/connector/account_iam.go b/pkg/connector/account_iam.go index aed7d989..42abf66e 100644 --- a/pkg/connector/account_iam.go +++ b/pkg/connector/account_iam.go @@ -75,8 +75,9 @@ func (o *accountIAMResourceType) List(ctx context.Context, _ *v2.ResourceId, pt Id: awsSdk.ToString(account.Id), } profile := accountProfile(ctx, account) + displayName := fmt.Sprintf("%s (%s)", awsSdk.ToString(account.Name), awsSdk.ToString(account.Id)) userResource, err := resourceSdk.NewAppResource( - awsSdk.ToString(account.Name), + displayName, resourceTypeAccountIam, awsSdk.ToString(account.Id), []resourceSdk.AppTraitOption{resourceSdk.WithAppProfile(profile)},