{"id":19504972,"url":"https://github.com/tools4everbv/helloid-task-sa-target-activedirectory-groupcreate","last_synced_at":"2025-02-25T22:13:45.104Z","repository":{"id":113214642,"uuid":"608706193","full_name":"Tools4everBV/HelloID-Task-SA-Target-ActiveDirectory-GroupCreate","owner":"Tools4everBV","description":"Active Directory - Group create","archived":false,"fork":false,"pushed_at":"2024-01-09T15:14:04.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-08T10:45:43.170Z","etag":null,"topics":["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}},"created_at":"2023-03-02T15:15:44.000Z","updated_at":"2024-01-09T09:36:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"a07e030d-771d-48ec-9024-dcb7aa186528","html_url":"https://github.com/Tools4everBV/HelloID-Task-SA-Target-ActiveDirectory-GroupCreate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-ActiveDirectory-GroupCreate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-ActiveDirectory-GroupCreate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-ActiveDirectory-GroupCreate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tools4everBV%2FHelloID-Task-SA-Target-ActiveDirectory-GroupCreate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tools4everBV","download_url":"https://codeload.github.com/Tools4everBV/HelloID-Task-SA-Target-ActiveDirectory-GroupCreate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240754367,"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","delegated-form","powershell","product","service-automation","task"],"created_at":"2024-11-10T22:27:55.714Z","updated_at":"2025-02-25T22:13:45.065Z","avatar_url":"https://github.com/Tools4everBV.png","language":"PowerShell","readme":"\n# HelloID-Task-SA-Target-ActiveDirectory-GroupCreate\n\n## Prerequisites\n\n- [ ] The HelloID SA on-premises agent installed\n\n- [ ] The ActiveDirectory module is installed on the server where the HelloID SA on-premises agent is running.\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 of the `New-ADGroup` cmdlet, 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\u003e  The script provides examples of how certain fields, such as email and managedBy, need to be supplied differently to the New-ADGroup cmdlet. Although these fields are initially added in the form object, they are later modified in the script to match the properties of the New-ADGroup.\n\n\n```json\n{\n    \"Name\": \"TestGroup1\",\n    \"Description\": \"TestGroup1\",\n    \"GroupCategory\": \"Security\",\n    \"GroupScope\": \"Global\",\n    \"OrganizationalUnit\": \"OU=Groups,DC=Tools,DC=local\",\n    \"ManagerUserPrincipalName\" : \"john.doe@tools.com\",\n    \"email\": \"TestGroup@tools.com\"\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\n\n\n2. Imports the ActiveDirectory module.\n\n3. Verify if the group that must be created already exists based on the `name` using the `Get-ADgroup` cmdlet.\n\n4. If the group does not exist, a new group is created using the `New-ADgroup` cmdlet. The hash table called `$formObject` is passed to the `New-ADgroup` cmdlet using the `@` symbol in front of the hash table name.  [See the Microsoft Docs page](https://learn.microsoft.com/en-us/powershell/module/activedirectory/new-adgroup?view=windowsserver2022-ps)\n\n\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-activedirectory-groupcreate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-activedirectory-groupcreate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftools4everbv%2Fhelloid-task-sa-target-activedirectory-groupcreate/lists"}