{"repo":"tspascoal/get-user-teams-membership","free":true,"listed":false,"github":"https://github.com/tspascoal/get-user-teams-membership","clone":"git clone https://github.com/tspascoal/get-user-teams-membership.git","description":"GitHub Action to get a user teams membership in a given organization","language":"JavaScript","stars":35,"topics":["github-actions"],"license":"MIT","category":"workflow-automation","readme_excerpt":"get-user-teams-membership GitHub Action to get the list of teams a user belongs in a given organization. It can also be optionally used to check if the user belongs to a given team It emits two outputs which are available via the steps output context teams - Array with the list of teams the user belongs (since it's array you can check if a user belongs to a team using contains function). This will have the team name or the team slug depending on value of use team slug value. isTeamMember - A string ( 'true' or 'false' ) indicating if a user belongs to a given team (always 'false' if team parameter is not used). Note: Although this represents a boolean concept, GitHub Actions outputs are always strings, so always compare against the string values 'true' or 'false' (e.g. steps.checkUserMember.outputs.isTeamMember == 'true' ) rather than a boolean literal. Usage See action.yml [!WARNING] If you see a warning like Node.js 20 actions are deprecated... tspascoal/get-user-teams-membership@v3 ... , update your workflow to tspascoal/get-user-teams-membership@v4 . v4 has been upgraded to run on Node.js 24 and is the recommended version. Requirements In order to use this action you need to use one of the following authentication options: - A [personal access token (classic)] with read:org scope (so the built-in GITHUB TOKEN is not enough) - A [fine-grained personal access token] with Organization permissions Members Read-only scope - A GitHub Apps installation token with Organization pe","default_branch":null,"files":null,"tree":[],"storefront":"/r/tspascoal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tspascoal/get-user-teams-membership/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}