Skip to content

Fix developer account_access mapping#395

Open
bechols wants to merge 3 commits intomainfrom
issue-296-developer-account-access
Open

Fix developer account_access mapping#395
bechols wants to merge 3 commits intomainfrom
issue-296-developer-account-access

Conversation

@bechols
Copy link
Contributor

@bechols bechols commented Jan 31, 2026

Fixes import of service accounts with developer role showing account_access as "none".

Checks both new Role enum and deprecated RoleDeprecated field.

Fixes #296

When importing a service account with developer role, the API may return
the role in the deprecated RoleDeprecated string field instead of the
Role enum field. This caused the enum to default to ROLE_UNSPECIFIED,
which mapped to "none" - an invalid value for service accounts.

Added FromAccountAccess() function that checks both fields, preferring
the enum but falling back to the deprecated string field when needed.

Fixes #296

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bechols bechols requested a review from a team as a code owner January 31, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Developer service account unable to import itself due to invalid account_access field

1 participant