{"id":19504642,"url":"https://github.com/tools4everbv/helloid-task-sa-source-activedirectory-accountgetgroupmemberships","last_synced_at":"2026-06-07T21:31:30.816Z","repository":{"id":220095819,"uuid":"740486664","full_name":"Tools4everBV/HelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships","owner":"Tools4everBV","description":"Active Directory - User get group memberships","archived":false,"fork":false,"pushed_at":"2024-01-31T08:54:17.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-08T10:45:09.348Z","etag":null,"topics":["active-directory","data-source","powershell","service-automation"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tools4everBV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T12:54:09.000Z","updated_at":"2024-01-31T08:53:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a90025d-e43b-4fe0-9636-2d2cea67d49b","html_url":"https://github.com/Tools4everBV/HelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships","commit_stats":null,"previous_names":["tools4everbv/helloid-task-sa-source-activedirectory-accountgetgroupmemberships"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tools4everBV","download_url":"https://codeload.github.com/Tools4everBV/HelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240754363,"owners_count":19852189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","data-source","powershell","service-automation"],"created_at":"2024-11-10T22:26:35.810Z","updated_at":"2026-06-07T21:31:30.788Z","avatar_url":"https://github.com/Tools4everBV.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HelloID-Task-SA-Source-ActiveDirectory-AccountGetGroupMemberships\n\n## Prerequisites\n\n- [ ] The HelloID SA on-premises agent installed\n- [ ] The ActiveDirectory module is installed on the server where the HelloID SA on-premises agent is running.\n- [ ] Data source input parameter (required parameter) named `selectedUser`. The linked form-element should at least return a model containing the `UserPrincipalName` property\n\n\n## Description\n\nThis code snippet executes the following tasks:\n\n1. Define `$userPrincipalName` based on the `selectedUser` data source input `$dataSource.selectedUser.UserPrincipalName`\n2. Imports the ActiveDirectory module.\n3. Retrieve the AD user using the `Get-ADUser` cmdlet.\n4. Get the AD group memberships of the AD user using the `Get-ADPrincipalGroupMembership` cmdlet.\n5. Remove the `Domain Users` group from the list\n6. Return a hash table for each group membership using the `Write-Output` cmdlet.\n\n\u003e To view an example of the data source output, please refer to the JSON code pasted below and select the `Interpreted as JSON` option in HelloID\n\n```json\n{\n    \"UserPrincipalName\": \"a.acevedo@domain.local\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-source-activedirectory-accountgetgroupmemberships","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-source-activedirectory-accountgetgroupmemberships","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-source-activedirectory-accountgetgroupmemberships/lists"}