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 & Detailse902ae3a-70de-4410-9db5-3e270b7386bd

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


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

@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

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