{"id":19504920,"url":"https://github.com/tools4everbv/helloid-task-sa-target-azureactivedirectory-accountdelete","last_synced_at":"2026-07-13T00:31:55.502Z","repository":{"id":191648782,"uuid":"613934514","full_name":"Tools4everBV/HelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete","owner":"Tools4everBV","description":"Azure Active Directory - User account delete","archived":false,"fork":false,"pushed_at":"2024-01-10T11:23:58.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-28T01:25:35.850Z","etag":null,"topics":["azure-active-directory","delegated-form","powershell","product","service-automation","task"],"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":"2023-03-14T15:02:02.000Z","updated_at":"2024-01-09T09:32:45.000Z","dependencies_parsed_at":"2023-08-30T23:30:29.424Z","dependency_job_id":"7b00bdd2-d192-416d-93dd-dfc9c9f83193","html_url":"https://github.com/Tools4everBV/HelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete","commit_stats":null,"previous_names":["tools4everbv/helloid-task-sa-target-azureactivedirectory-accountdelete"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Tools4everBV/HelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tools4everBV","download_url":"https://codeload.github.com/Tools4everBV/HelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35406584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["azure-active-directory","delegated-form","powershell","product","service-automation","task"],"created_at":"2024-11-10T22:27:42.279Z","updated_at":"2026-07-13T00:31:55.479Z","avatar_url":"https://github.com/Tools4everBV.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HelloID-Task-SA-Target-AzureActiveDirectory-AccountDelete\n\n## Prerequisites\n\nBefore using this snippet, verify you've met with the following requirements:\n\n- [ ] AzureAD app registration\n- [ ] The correct app permissions for the app registration\n- [ ] User defined variables: `AADTenantID`, `AADAppID` and `AADAppSecret` created in your HelloID portal.\n\n## Description\n\nThis code snippet executes the following tasks:\n\n1. Define a hash table `$formObject`. The keys of the hash table represent the properties to delete a user account, while the values represent the values entered in the form.\n\n\u003e To view an example of the form output, please refer to the JSON code pasted below.\n\n```json\n{\n    \"UserIdentity\": \"4fca2ec0-4b36-469d-80b3-aa8df406971d\",\n    \"UserPrincipalName\": \"JohnDoe@domain\",\n}\n```\n\n\u003e :exclamation: It is important to note that the names of your form fields might differ. Ensure that the `$formObject` hashtable is appropriately adjusted to match your form fields.\n\u003e The `UserIdentity` accepts different values [See the Microsoft Docs page](https://learn.microsoft.com/en-us/graph/api/user-delete?view=graph-rest-1.0\u0026tabs=http#http-request)\n\n1. Receive a bearer token by making a POST request to: `https://login.microsoftonline.com/$AADTenantID/oauth2/token`, where `$AADTenantID` is the ID of your Azure Active Directory tenant.\n\n2. Delete the user account using the: `Invoke-RestMethod` cmdlet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-azureactivedirectory-accountdelete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-azureactivedirectory-accountdelete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-azureactivedirectory-accountdelete/lists"}