Skip to content

Enhancement: UserGroups - Add job role support#97

Merged
rafaeljusto merged 1 commit into
mainfrom
job-roles
Jun 26, 2026
Merged

Enhancement: UserGroups - Add job role support#97
rafaeljusto merged 1 commit into
mainfrom
job-roles

Conversation

@rafaeljusto

Copy link
Copy Markdown
Contributor

Description

Add job roles to UserGroups and LegacyUserGroups so callers can assign and parse job-role members alongside users, teams, and companies.

  • Add JobRoleIDs to UserGroups (jobRoleIds) and LegacyUserGroups
  • Encode/decode job roles with the "r" prefix in the legacy comma-separated format, matching the backend convention
  • Send the Jobroles-Enabled header so the API opts the SDK into job-role-aware responses
  • Include JobRoleIDs in LegacyUserGroups.IsEmpty
  • Add unit tests covering marshal/unmarshal, round-trip, and IsEmpty

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Tests pass locally (go test -v ./...)
  • Added/updated tests for new functionality

Checklist

  • Code follows project style guidelines
  • Self-reviewed the code
  • Added necessary documentation
  • No new warnings or errors

@rafaeljusto rafaeljusto requested a review from a team as a code owner June 26, 2026 18:08
Add job roles to UserGroups and LegacyUserGroups so callers can assign
and parse job-role members alongside users, teams, and companies.

- Add JobRoleIDs to UserGroups (jobRoleIds) and LegacyUserGroups
- Encode/decode job roles with the "r" prefix in the legacy
  comma-separated format, matching the backend convention
- Send the Jobroles-Enabled header so the API opts the SDK into
  job-role-aware responses
- Include JobRoleIDs in LegacyUserGroups.IsEmpty
- Add unit tests covering marshal/unmarshal, round-trip, and IsEmpty
@rafaeljusto rafaeljusto merged commit 34fe280 into main Jun 26, 2026
3 checks passed
@rafaeljusto rafaeljusto deleted the job-roles branch June 26, 2026 18:19
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.

1 participant