Skip to content

Conversation

@cx-rahul-pidde
Copy link
Contributor

@cx-rahul-pidde cx-rahul-pidde commented Nov 10, 2025

Description

This PR adds functionality to the cx utils tenant command to determine whether a tenant has licenses for Standalone and CXOneAssist. It queries the tenant license endpoint, processes the response, and outputs configuration keys indicating feature availability. In the CLI output:

  • scan.config.plugins.standalone = true if the tenant has a Standalone license
  • scan.config.plugins.cxoneassist = true if the tenant has a CXOneAssist license
  • Return false if the tenant has no licence.

Test Cases

  1. Tenant has both Standalone & CXOneAssist
  • Run cx utils tenant
  • Expect output:

Key : scan.config.plugins.standalone
Value : true
Key : scan.config.plugins.cxoneassist
Value : true

  1. Tenant has only Standalone
  • Run cx utils tenant
  • Expect output:

Key : scan.config.plugins.standalone
Value : true
Key : scan.config.plugins.cxoneassist
Value : false

  1. Tenant has only CXOneAssist
  • Run cx utils tenant
  • Expect:

Key : scan.config.plugins.standalone
Value : false
Key : scan.config.plugins.cxoneassist
Value: true

  1. Tenant has no license
  • Run cx utils tenant
  • Expect:

Key : scan.config.plugins.standalone
Value : false
Key : scan.config.plugins.cxoneassist
Value: false

@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2025

Logo
Checkmarx One – Scan Summary & Details2cf6df3a-ee38-4387-beff-be5966ac1328

Great job! No new security vulnerabilities introduced in this pull request

@cx-rahul-pidde cx-rahul-pidde changed the title Added new function to get license info is standalone is enabled (AST-112336) Retrieve Tenant License Information for Standalone and CXOneAssist (AST-112336) Nov 17, 2025
@cx-rahul-pidde cx-rahul-pidde self-assigned this Nov 20, 2025
Copy link
Collaborator

@cx-anurag-dalke cx-anurag-dalke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@cx-rahul-pidde cx-rahul-pidde merged commit 2b92451 into main Dec 15, 2025
5 checks passed
@cx-rahul-pidde cx-rahul-pidde deleted the feature/AST-112336 branch December 15, 2025 12:35
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.

2 participants