Skip to content

[Domain Control] [Release 2] [BE] Return default security group ID in getDomainForOnyx #80225

Closed

Description

@mountiny

Part of #76750

Description

Update the getDomainForOnyx function in Auth to include the domain_defaultSecurityGroupID NVP in the domain Onyx data. This allows the frontend to know which security group is the default one when displaying domain settings.

Design doc section here

Implementation Details

Auth Changes

Update getDomainForOnyx to include the default security group ID after the security groups loop:

// Add default security group ID
const string& defaultSecurityGroupID = NVP::get(db, domainAccountID, NVP::DOMAIN_DEFAULT_SECURITY_GROUP_ID);
if (!defaultSecurityGroupID.empty()) {
    domainData[NVP::DOMAIN_DEFAULT_SECURITY_GROUP_ID] = defaultSecurityGroupID;
}

The NVP constant is already defined in NVP.h:

Onyx Data Structure

The domain_<domainAccountID> key will include:

{
  "domain_defaultSecurityGroupID": "<securityGroupID>",
  "domain_securityGroup_<id1>": { ... },
  "domain_securityGroup_<id2>": { ... }
}

App Changes

  • Update the domain type in ONYXKEYS.ts to include domain_defaultSecurityGroupID
  • The frontend can use this to highlight/identify the default security group in the UI

Resources


Issue Owner

Current Issue Owner: @mountiny

Activity

  1. self-assigned this
    on Jan 22, 2026
  2. changed the title [-][Domain Control] [Release 3] [BE] Return default security group ID in getDomainForOnyx[/-] [+][Domain Control] [Release 2] [BE] Return default security group ID in getDomainForOnyx[/+] on Jan 22, 2026
  3. mountiny commented on Jan 24, 2026

    @mountiny
    ContributorAuthor

    Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions