---
descriptions:
  directory_group:
    self: 'The [Directory Group](/reference/directory-sync/directory-group) object.'
    object: Distinguishes the Directory Group object.
    id: Unique identifier for the Directory Group.
    idp: >
      Unique identifier for the group, assigned by the Directory Provider.
      Different Directory Providers use different ID formats.
    directory_id: The identifier of the Directory the Directory Group belongs to.
    organization_id: The identifier for the Organization in which the Directory resides.
    name: The name of the Directory Group.
    created_at: The timestamp when the Directory Group was created.
    updated_at: The timestamp when the Directory Group was last updated.
reference:
  curl:
    - url: /reference/directory-sync/directory-group
      key: directory_group
      id: directory_group
      title: directory_group
      properties:
        - key: id
          type: string
          description: (directory_group.id)
        - key: idp_id
          type: string
          description: (directory_group.idp)
        - key: directory_id
          type: string
          description: (directory_group.directory_id)
        - key: organization_id
          optional: true
          type: string
          description: (directory_group.organization_id)
        - key: name
          type: string
          description: (directory_group.name)
        - key: created_at
          type: string
          description: (directory_group.created_at)
        - key: updated_at
          type: string
          description: (directory_group.updated_at)
  dotnet:
    - url: /reference/directory-sync/directory-group
      key: Group
      id: directory_group
      title: class Group
      properties:
        - key: Object
          type: '"directory_group"'
          description: (directory_group.object)
        - key: Id
          type: string
          description: (directory_group.id)
        - key: IdpId
          type: string
          description: (directory_group.idp)
        - key: DirectoryId
          type: string
          description: (directory_group.directory_id)
        - key: OrganizationId
          optional: true
          type: string
          description: (directory_group.organization_id)
        - key: Name
          type: string
          description: (directory_group.name)
        - key: CreatedAt
          type: string
          description: (directory_group.created_at)
        - key: UpdatedAt
          type: string
          description: (directory_group.updated_at)
  ruby:
    - url: /reference/directory-sync/directory-group
      key: DirectoryGroup
      id: directory_group
      title: class DirectoryGroup
      properties:
        - key: id
          type: String
          description: (directory_group.id)
        - key: idp_id
          type: String
          description: (directory_group.idp)
        - key: directory_id
          type: String
          description: (directory_group.directory_id)
        - key: organization_id
          optional: true
          type: String
          description: (directory_group.organization_id)
        - key: name
          type: String
          description: (directory_group.name)
        - key: created_at
          type: String
          description: (directory_group.created_at)
        - key: updated_at
          type: String
          description: (directory_group.updated_at)
  python:
    - url: /reference/directory-sync/directory-group
      key: DirectoryGroup
      id: directory_group
      title: DirectoryGroup
      properties:
        - key: id
          type: str
          description: (directory_group.id)
        - key: idp_id
          type: str
          description: (directory_group.idp)
        - key: directory_id
          type: str
          description: (directory_group.directory_id)
        - key: name
          type: str
          description: (directory_group.name)
        - key: created_at
          type: str
          description: (directory_group.created_at)
        - key: updated_at
          type: str
          description: (directory_group.updated_at)
  js:
    - url: /reference/directory-sync/directory-group
      key: DirectoryGroup
      id: directory_group
      title: interface DirectoryGroup
      properties:
        - key: id
          type: string
          description: (directory_group.id)
        - key: idpId
          type: string
          description: (directory_group.idp)
        - key: directoryId
          type: string
          description: (directory_group.directory_id)
        - key: organizationId
          optional: true
          type: string
          description: (directory_group.organization_id)
        - key: name
          type: string
          description: (directory_group.name)
        - key: createdAt
          type: string
          description: (directory_group.created_at)
        - key: updatedAt
          type: string
          description: (directory_group.updated_at)
  go:
    - url: /reference/directory-sync/directory-group
      key: Group
      id: directory_group
      title: directorysync.Group
      properties:
        - key: ID
          type: string
          description: (directory_group.id)
        - key: IdpID
          type: string
          description: (directory_group.idp)
        - key: DirectoryID
          type: string
          description: (directory_group.directory_id)
        - key: OrganizationID
          optional: true
          type: string
          description: (directory_group.organization_id)
        - key: Name
          type: string
          description: (directory_group.name)
        - key: CreatedAt
          type: string
          description: (directory_group.created_at)
        - key: UpdatedAt
          type: string
          description: (directory_group.updated_at)
  php:
    - url: /reference/directory-sync/directory-group
      key: DirectoryGroup
      id: directory_group
      title: WorkOS\Resource\DirectoryGroup
      properties:
        - key: id
          type: string
          description: (directory_group.id)
        - key: idpId
          type: string
          description: (directory_group.idp)
        - key: directoryId
          type: string
          description: (directory_group.directory_id)
        - key: organizationId
          optional: true
          type: string
          description: (directory_group.organization_id)
        - key: name
          type: string
          description: (directory_group.name)
        - key: createdAt
          type: string
          description: (directory_group.created_at)
        - key: updatedAt
          type: string
          description: (directory_group.updated_at)
  java:
    - url: /reference/directory-sync/directory-group
      key: Group
      id: directory_group
      title: class Group
      properties:
        - key: obj
          type: '"directory_group"'
          description: (directory_group.object)
        - key: directoryId
          type: String
          description: (directory_group.directory_id)
        - key: organizationId
          optional: true
          type: String
          description: (directory_group.organization_id)
        - key: id
          type: String
          description: (directory_group.id)
        - key: idpId
          type: String
          description: (directory_group.idp)
        - key: name
          type: String
          description: (directory_group.name)
        - key: createdAt
          type: String
          description: (directory_group.created_at)
        - key: updatedAt
          type: String
          description: (directory_group.updated_at)
originalPath: >-
  .tmp-workos-clone/packages/docs/content/reference/directory-sync/directory-group/index.mdx
---

# Directory Group

A directory group represents an organizational unit of users in a directory provider.

<CodeBlock
  title="Example Directory Group"
  file="directory-group"
  referenceId="directory_group"
/>
