> ## Documentation Index
> Fetch the complete documentation index at: https://conductorone-docs-api-common-tasks-cookbook.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Count Entitlement Selection Filter Attribute Values

> CountEntitlementSelectionFilterAttributeValues returns exact cohort and
 selected-holder counts for one bounded page of custom attribute values.



## OpenAPI

````yaml https://spec.speakeasy.com/conductor-one/conductorone/my-source-with-code-samples post /api/v1/role-mining/custom-analysis/{selection_analysis_id}/filter-attributes/{attribute}/value-counts
openapi: 3.1.0
info:
  description: The C1 API is a HTTP API for managing C1 resources.
  title: C1 API
  version: 0.1.0-alpha
servers:
  - description: The C1 API server for the current tenant.
    url: https://{tenantDomain}.conductor.one
    variables:
      tenantDomain:
        default: example
        description: The domain of the tenant to use for this request.
security:
  - bearerAuth: []
    oauth: []
paths:
  /api/v1/role-mining/custom-analysis/{selection_analysis_id}/filter-attributes/{attribute}/value-counts:
    post:
      tags:
        - Role Mining
      summary: Count Entitlement Selection Filter Attribute Values
      description: |-
        CountEntitlementSelectionFilterAttributeValues returns exact cohort and
         selected-holder counts for one bounded page of custom attribute values.
      operationId: >-
        c1.api.role_mining_management.v1.RoleMiningManagementService.CountEntitlementSelectionFilterAttributeValues
      parameters:
        - in: path
          name: selection_analysis_id
          required: true
          schema:
            description: >-
              Custom analysis whose cohort and entitlement results define the
              selection.
            type: string
        - in: path
          name: attribute
          required: true
          schema:
            description: The attribute field.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/c1.api.role_mining_management.v1.CountEntitlementSelectionFilterAttributeValuesRequestInput
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/c1.api.role_mining_management.v1.CountEntitlementSelectionFilterAttributeValuesResponse
          description: Successful response
components:
  schemas:
    c1.api.role_mining_management.v1.CountEntitlementSelectionFilterAttributeValuesRequestInput:
      description: The CountEntitlementSelectionFilterAttributeValuesRequest message.
      properties:
        selection:
          oneOf:
            - $ref: >-
                #/components/schemas/c1.api.role_mining_management.v1.EvaluateEntitlementSelectionRequest
            - type: 'null'
        values:
          description: The values field.
          items:
            type: string
          type:
            - array
            - 'null'
      title: Count Entitlement Selection Filter Attribute Values Request
      type: object
      x-speakeasy-name-override: CountEntitlementSelectionFilterAttributeValuesRequest
    c1.api.role_mining_management.v1.CountEntitlementSelectionFilterAttributeValuesResponse:
      description: The CountEntitlementSelectionFilterAttributeValuesResponse message.
      properties:
        cohortUserCount:
          description: The cohortUserCount field.
          format: int32
          type: integer
        coreUserCount:
          description: The coreUserCount field.
          format: int32
          type: integer
        values:
          description: The values field.
          items:
            $ref: >-
              #/components/schemas/c1.api.role_mining_management.v1.EntitlementSelectionFilterAttributeValueCount
          type:
            - array
            - 'null'
      title: Count Entitlement Selection Filter Attribute Values Response
      type: object
      x-speakeasy-name-override: CountEntitlementSelectionFilterAttributeValuesResponse
    c1.api.role_mining_management.v1.EvaluateEntitlementSelectionRequest:
      description: >-
        EvaluateEntitlementSelectionRequest selects analyzed entitlements using
        an
         inclusive coverage cutoff plus optional manual overrides.
      properties:
        analysisId:
          description: >-
            Custom analysis whose cohort and entitlement results define the
            selection.
          type: string
        explicitlyExcluded:
          description: Analyzed entitlements to exclude when they meet the cutoff.
          items:
            $ref: >-
              #/components/schemas/c1.api.role_mining_management.v1.EntitlementRef
          type:
            - array
            - 'null'
        explicitlyIncluded:
          description: >-
            Analyzed entitlements to include even when they fall below the
            cutoff.
          items:
            $ref: >-
              #/components/schemas/c1.api.role_mining_management.v1.EntitlementRef
          type:
            - array
            - 'null'
        includeFacets:
          description: Whether to return profile attribute facets for exact holders.
          type: boolean
        minimumCoverageBasisPoints:
          description: >-
            Inclusive minimum entitlement coverage in basis points, where 8000
            is 80%.
          format: int32
          type: integer
      title: Evaluate Entitlement Selection Request
      type: object
      x-speakeasy-name-override: EvaluateEntitlementSelectionRequest
    c1.api.role_mining_management.v1.EntitlementSelectionFilterAttributeValueCount:
      description: The EntitlementSelectionFilterAttributeValueCount message.
      properties:
        cohortUserCount:
          description: The cohortUserCount field.
          format: int32
          type: integer
        coreUserCount:
          description: The coreUserCount field.
          format: int32
          type: integer
        value:
          description: The value field.
          type: string
      title: Entitlement Selection Filter Attribute Value Count
      type: object
      x-speakeasy-name-override: EntitlementSelectionFilterAttributeValueCount
    c1.api.role_mining_management.v1.EntitlementRef:
      description: >-
        EntitlementRef identifies an entitlement by application and entitlement
        ID.
      properties:
        appId:
          description: Application that owns the entitlement.
          type: string
        entitlementId:
          description: Entitlement within the application.
          type: string
      title: Entitlement Ref
      type: object
      x-speakeasy-name-override: EntitlementRef
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    oauth:
      description: >-
        This API uses OAuth2 with the Client Credential flow.

        Client Credentials must be sent in the BODY, not the headers.

        For an example of how to implement this, refer to the
        [c1TokenSource.Token()](https://github.com/ConductorOne/conductorone-sdk-go/blob/3375fe7c0126d17e7ec4e711693dee7b791023aa/token_source.go#L101-L187)
        function.
      flows:
        clientCredentials:
          scopes: {}
          tokenUrl: /auth/v1/token
      type: oauth2

````