Skip to content

Is Organization Member

Actions
Checks if someone is a member of an organization
1.0.1
Latest
Star (11)

Is Organization Member

This action returns if someone belongs to a certain organization or not.

Usage

An example workflow using the action:

name: Is Organization Member Example

on:
  issues:
    types: [opened, labeled]

jobs:
  welcome:
    name: Welcome
    runs-on: ubuntu-latest
    steps:
      - name: Check if organization member
        id: is_organization_member
        if: github.event.action == 'opened'
        uses: JamesSingleton/[email protected]
        with:
          organization: testorg
          username: ${{ github.event.issue.user.login }}
          token: ${{ secrets.GITHUB_TOKEN }}
      - name: Create Comment
        if: |
          ${{ steps.is_organization_member.outputs.result == 'false' }}
        run: echo User Does Not Belong to testorg

Note: In order to check whether a member is part of the organization or not, the members must have their "Organization Visibility" set to Public. In order to ensure your "Organization Visibility" is correct, please, check https://github.com/orgs/**your_organization**/people.

Is Organization Member is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Checks if someone is a member of an organization
1.0.1
Latest

Is Organization Member is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.