{"id":19504912,"url":"https://github.com/tools4everbv/helloid-task-sa-target-azureactivedirectory-accountcreate","last_synced_at":"2025-09-04T04:36:08.733Z","repository":{"id":113214679,"uuid":"609085221","full_name":"Tools4everBV/HelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate","owner":"Tools4everBV","description":"Azure Active Directory - User account create","archived":false,"fork":false,"pushed_at":"2024-01-10T11:25:27.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-13T15:10:55.807Z","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-03T10:48:42.000Z","updated_at":"2024-01-09T09:33:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4c9aa8a-4e72-4915-a873-07c57ed27b9c","html_url":"https://github.com/Tools4everBV/HelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Tools4everBV/HelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate/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-AccountCreate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273551665,"owners_count":25125781,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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:37.798Z","updated_at":"2025-09-04T04:36:08.711Z","avatar_url":"https://github.com/Tools4everBV.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# HelloID-Task-SA-Target-AzureActiveDirectory-AccountCreate\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 necessary to create a new user within `Azure Active Directory`, 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    \"UserType\": \"Member\",\n    \"DisplayName\": \"John Doe\",\n    \"UserPrincipalName\": \"johndoe@domain\",\n    \"GivenName\": \"John\",\n    \"SurName\": \"Doe\",\n    \"Mail\": \"johndoe@domain\",\n    \"Department\": \"IT\",\n    \"MailNickName\": \"johndoe\",\n    \"ShowInAddressList\": false,\n    \"Password\": \"MyPassw0rd!\",\n    \"ForceChangePasswordNextSignIn\": false,\n    \"AccountEnabled\": true\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 [See the Microsoft Docs page](https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0\u0026tabs=http)\n\n2. 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\n3. Create a new user using the: `Invoke-RestMethod` cmdlet. The hash table called: `$formObject` is passed to the body of the: `Invoke-RestMethod` cmdlet as a JSON object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-azureactivedirectory-accountcreate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-azureactivedirectory-accountcreate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-azureactivedirectory-accountcreate/lists"}