> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opal.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get groups visibleusers

> Checks whether a user can see this group, as shown in the Opal UI for that user. Checking another user requires an Opal admin or a custom role with the CHECK_VISIBILITY permission; a caller can always check their own visibility, in which case an entity they cannot see is reported as not found.



## OpenAPI

````yaml https://app.opal.dev/openapi.yaml get /groups/{group_id}/visible/users/{user_id}
openapi: 3.1.0
info:
  contact:
    email: hello@opal.dev
    name: Opal Team
    url: https://www.opal.dev/
  description: >-
    The Opal API is a RESTful API that allows you to interact with the Opal
    Security platform programmatically.
  title: Opal API
  version: '1.0'
servers:
  - description: Production
    url: https://api.opal.dev/v1
security: []
tags:
  - name: access-rules
    description: Operations related to access rules
  - name: agent-activity
    description: Operations related to agent activity telemetry
  - name: apps
    description: Operations related to apps
  - name: bundles
    description: Operations related to bundles
  - name: campaigns
    description: Operations related to access review campaigns
  - name: configuration-templates
    description: Operations related to configuration templates
  - name: delegations
    description: Operations related to request reviewer delegations
  - name: event-streams
    description: Operations related to event streaming connections
  - name: events
    description: Operations related to events
  - name: groups
    description: Operations related to groups
  - name: group-bindings
    description: Operations related to group bindings
  - name: idp-group-mappings
    description: Operations related to IDP group mappings
  - name: message-channels
    description: Operations related to message channels
  - name: non-human-identities
    description: Operations related to non-human identities
  - name: on-call-schedules
    description: Operations related to on-call schedules
  - name: opal-queries
    description: Operations related to OpalQuery
  - name: opal-scripts
    description: Operations related to OpalScripts
  - name: owners
    description: Operations related to owners
  - name: requests
    description: Operations related to requests
  - name: resources
    description: Operations related to resources
  - name: role-assignments
    description: >-
      Operations related to role assignments (general grants between an entity
      and a principal)
  - name: paladin
    description: Operations related to Paladin
  - name: service-users
    description: Operations related to service users (non-human identities owned by a team)
  - name: sessions
    description: Operations related to sessions
  - name: tags
    description: Operations related to tags
  - name: tokens
    description: Operations related to API tokens
  - name: uars
    description: Operations related to UARs. Deprecated in favor of the `campaigns` API.
  - name: users
    description: Operations related to users
paths:
  /groups/{group_id}/visible/users/{user_id}:
    get:
      tags:
        - groups
      description: >-
        Checks whether a user can see this group, as shown in the Opal UI for
        that user. Checking another user requires an Opal admin or a custom role
        with the CHECK_VISIBILITY permission; a caller can always check their
        own visibility, in which case an entity they cannot see is reported as
        not found.
      operationId: get_group_visible_to_user
      parameters:
        - description: The ID of the group.
          example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5
          explode: false
          in: path
          name: group_id
          required: true
          schema:
            type: string
            format: uuid
          style: simple
        - description: The ID of the user whose visibility is being checked.
          example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06
          explode: false
          in: path
          name: user_id
          required: true
          schema:
            type: string
            format: uuid
          style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserVisibilityCheck'
          description: Whether the user can see this group, and why.
        '403':
          description: >-
            The caller is checking another user and is not an Opal admin or
            holder of the CHECK_VISIBILITY permission.
        '404':
          description: The group or the user was not found.
      security:
        - BearerAuth: []
components:
  schemas:
    UserVisibilityCheck:
      description: Whether an entity is visible to a user, and why.
      example:
        visible: true
        reason: GLOBAL
      properties:
        visible:
          type: boolean
        reason:
          $ref: '#/components/schemas/VisibilityReasonEnum'
      type: object
      required:
        - visible
        - reason
    VisibilityReasonEnum:
      description: >-
        Why an entity is or is not visible to a user. ADMIN covers admins,
        read-only admins and auditors. GLOBAL

        also covers the global requester role. NOT_IN_VISIBILITY_GROUP,
        NOT_IN_APP_VISIBILITY_GROUP,

        NOT_IN_PARENT_VISIBILITY_GROUP, ASSET_DELETED and DIRECTORY_APP_HIDDEN
        mean the entity is not visible.
      enum:
        - GLOBAL
        - VISIBILITY_GROUP
        - OWNER
        - ADMIN
        - HAS_ACCESS
        - CUSTOM_ROLE
        - NOT_IN_VISIBILITY_GROUP
        - NOT_IN_APP_VISIBILITY_GROUP
        - NOT_IN_PARENT_VISIBILITY_GROUP
        - ASSET_DELETED
        - DIRECTORY_APP_HIDDEN
      example: GLOBAL
      type: string
  securitySchemes:
    BearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.