{"id":1545,"date":"2026-01-16T09:06:25","date_gmt":"2026-01-16T08:06:25","guid":{"rendered":"https:\/\/au2mator.webtrics.at\/blog\/entra-id-automation-create-group-role-assignment\/"},"modified":"2026-02-06T16:17:21","modified_gmt":"2026-02-06T15:17:21","slug":"entra-id-automation-gruppe-erstellen-rolle-zuweisen","status":"publish","type":"post","link":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/","title":{"rendered":"Entra ID Automation: Entra ID Gruppe automatisch erstellen und Entra Rolle zuweisen"},"content":{"rendered":"\n<p>Wenn du <strong>entra id automation<\/strong> sauber umsetzen willst (Gruppe erstellen <strong>und<\/strong> danach eine <strong>entra id role assignment<\/strong> durchf\u00fchren), musst du beim Erstellen der Gruppe die richtigen Eigenschaften setzen:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>securityEnabled = true<\/code> (Security Group \/ Security Principal)<\/li>\n\n\n\n<li>und f\u00fcr Entra Directory Roles auf Gruppen in der Praxis: <code>isAssignableToRole = true<\/code> (Role-Assignable Group).<\/li>\n<\/ul>\n\n\n\n<p>Microsoft zeigt diesen Ansatz ebenfalls: Eine <em>role-assignable security group<\/em> wird mit <code>securityEnabled: true<\/code> und <code>isAssignableToRole: true<\/code> erstellt.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background\" style=\"margin-top:40px;margin-bottom:40px;background-color:#8bc34a;color:#8bc34a\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Warum securityEnabled = true so wichtig ist<\/h2>\n\n\n\n<p>Entra Directory Roles werden an Security Principals gebunden. Wenn deine Gruppe nicht <strong>securityEnabled<\/strong> ist, scheitert die \u201eRolle zuweisen\u201c-Automatisierung typischerweise, weil die Gruppe nicht im richtigen Kontext als Zielobjekt f\u00fcr Rollenmanagement genutzt werden kann.<\/p>\n\n\n\n<p>Darum: Wenn du von \u201eGruppe erstellen\u201c direkt weiter zu \u201eEntra Rolle zuweisen\u201c automatisieren willst, erstelle die Gruppe als <strong>Security Group<\/strong> (<code>securityEnabled=true<\/code>) und \u2013 f\u00fcr Directory Roles auf Gruppen \u2013 als <strong>role-assignable<\/strong> (<code>isAssignableToRole=true<\/code>).<\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background\" style=\"margin-top:40px;margin-bottom:40px;background-color:#8bc34a;color:#8bc34a\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Die Graph-API Bausteine<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Gruppe erstellen:<\/strong> <code>POST &lt;https:\/\/graph.microsoft.com\/v1.0\/groups<\/code>><\/li>\n\n\n\n<li><strong>Rollenzuweisung erstellen:<\/strong> <code>POST \/roleManagement\/directory\/roleAssignments<\/code> (unifiedRoleAssignment)<\/li>\n<\/ul>\n\n\n\n<p>Berechtigungsseitig nennt Microsoft u. a. <code>Group.ReadWrite.All<\/code> f\u00fcr das Erstellen der Gruppe und <code>RoleManagement.ReadWrite.Directory<\/code> f\u00fcr rollenbezogene Operationen.<\/p>\n\n\n\n<p>Zus\u00e4tzlich dokumentiert Microsoft, dass (delegiert) <strong>Privileged Role Administrator<\/strong> die least-privileged Entra Rolle f\u00fcr das Erstellen von Role Assignments ist.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background\" style=\"margin-top:40px;margin-bottom:40px;background-color:#8bc34a;color:#8bc34a\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Vollst\u00e4ndiges PowerShell Script: Gruppe erstellen + Entra Rolle zuweisen<\/h2>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#f3f3f3\"><code>\n&lt;#\nEntra ID Automation: Role-Assignable Security Group erstellen und Entra Directory Role zuweisen\nVoraussetzung: Microsoft Graph PowerShell SDK\n#>\n\n# ---------------------------\n# 0) Voraussetzungen \/ Module\n# ---------------------------\n# Install-Module Microsoft.Graph -Scope CurrentUser\nImport-Module Microsoft.Graph.Groups\nImport-Module Microsoft.Graph.Identity.Governance\n\n# ---------------------------\n# 1) Verbindung zu Microsoft Graph\n# ---------------------------\n$scopes =@(\n\"Group.ReadWrite.All\",\n\"RoleManagement.ReadWrite.Directory\",\n\"Directory.Read.All\"\n)\n\nConnect-MgGraph-Scopes$scopes\n\n# ---------------------------\n# 2) Parameter definieren\n# ---------------------------\n$groupDisplayName =\"PIM-Helpdesk-UserAdmin\"\n$groupDescription =\"Role-assignable security group managed by automation\"\n$mailNickname     = (\"pimhelpdesk\" + (Get-Random-Maximum9999))\n\n# Gew\u00fcnschte Entra Directory Role (Beispiele: \"User Administrator\", \"Groups Administrator\")\n$roleDisplayName  =\"User Administrator\"\n\n# ---------------------------\n# 3) ROLE-ASSIGNABLE SECURITY GROUP erstellen\n# ---------------------------\n$params =@{\n  description        =$groupDescription\n  displayName        =$groupDisplayName\n  mailEnabled        =$false\n  mailNickname       =$mailNickname\n  securityEnabled    =$true\n  isAssignableToRole =$true\n}\n\n$group =New-MgGroup-BodyParameter$params\nWrite-Host\"Gruppe erstellt:\"$group.DisplayName\" (\"$group.Id\")\"\n\n# ---------------------------\n# 4) Role Definition ID ermitteln\n# ---------------------------\n$roleDefinition =Get-MgRoleManagementDirectoryRoleDefinition-Filter\"displayName eq '$roleDisplayName'\"\n\nif (-not$roleDefinition) {\nthrow\"Role Definition nicht gefunden f\u00fcr displayName: $roleDisplayName\"\n}\n\nWrite-Host\"Rolle:\"$roleDefinition.DisplayName\" (\"$roleDefinition.Id\")\"\n\n# ---------------------------\n# 5) Entra Rolle der Gruppe zuweisen (Tenant-weit)\n# ---------------------------\n$assignmentParams =@{\n  principalId      =$group.Id\n  roleDefinitionId =$roleDefinition.Id\n  directoryScopeId =\"\/\"\n}\n\n$assignment =New-MgRoleManagementDirectoryRoleAssignment-BodyParameter$assignmentParams\nWrite-Host\"Rolle zugewiesen. Assignment Id:\"$assignment.Id\n\n# ---------------------------\n# 6) Ergebnis ausgeben\n# ---------------------------\n&#91;PSCustomObject]@{\n  Gruppenname       =$group.DisplayName\n  GruppenId         =$group.Id\n  Rollenname        =$roleDefinition.DisplayName\n  RoleDefinitionId  =$roleDefinition.Id\n  DirectoryScopeId  =\"\/\"\n  RoleAssignmentId  =$assignment.Id\n}\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Die entscheidenden Punkte:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Gruppe wird \u00fcber <code>\/groups<\/code> erstellt und setzt explizit <code>securityEnabled<\/code> und <code>isAssignableToRole<\/code>.<\/li>\n\n\n\n<li>Die Rollenzuweisung wird als <code>unifiedRoleAssignment<\/code> \u00fcber Role Management erstellt.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background\" style=\"margin-top:40px;margin-bottom:40px;background-color:#8bc34a;color:#8bc34a\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Von Automation zu Governance: warum PIM der n\u00e4chste Schritt ist<\/h2>\n\n\n\n<p>Skripte l\u00f6sen Provisioning \u2013 aber Governance (Genehmigungen, JIT, Ablaufzeiten, Audits) kommt meist als n\u00e4chstes. Microsoft beschreibt PIM genau mit dem Ziel, \u201estanding admin access\u201c zu reduzieren und privilegierten Zugriff zu steuern.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background\" style=\"margin-top:40px;margin-bottom:40px;background-color:#8bc34a;color:#8bc34a\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Entdecke unsere hybride au2mator PIM L\u00f6sung<\/h2>\n\n\n\n<p>Wenn du Entra Rollen <strong>und<\/strong> On-Prem AD Rollen in einem Portal verwalten und zeitlich begrenzen willst (hybrid), schau dir unsere L\u00f6sung an:<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/au2mator.webtrics.at\/de\/privileged-identity-management\/\">au2mator Privileged Identity Management (PIM)<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In vielen Umgebungen startet alles mit \u201ewir automatisieren das schnell mit PowerShell\u201c. Und genau hier passieren die klassischen Fehler: die Gruppe wird erstellt, aber danach kann keine Rolle zugewiesen werden, weil die Gruppe nicht als Security Principal geeignet ist.<\/p>\n","protected":false},"author":1,"featured_media":1331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-1545","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-script"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Entra ID automation: create group + Entra ID role assignment<\/title>\n<meta name=\"description\" content=\"Automate Entra ID group creation with Microsoft Graph + PowerShell and assign an Entra role. Why securityEnabled=true matters + full script.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Entra ID automation: create group + Entra ID role assignment\" \/>\n<meta property=\"og:description\" content=\"Automate Entra ID group creation with Microsoft Graph + PowerShell and assign an Entra role. Why securityEnabled=true matters + full script.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/\" \/>\n<meta property=\"og:site_name\" content=\"au2mator\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-16T08:06:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-06T15:17:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/business-au2mator.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"webtrics-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"webtrics-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/\"},\"author\":{\"name\":\"webtrics-admin\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#\\\/schema\\\/person\\\/78abba259d89006577bbc425337be0c9\"},\"headline\":\"Entra ID Automation: Entra ID Gruppe automatisch erstellen und Entra Rolle zuweisen\",\"datePublished\":\"2026-01-16T08:06:25+00:00\",\"dateModified\":\"2026-02-06T15:17:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/\"},\"wordCount\":294,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/au2mator.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/business-au2mator.jpg\",\"articleSection\":[\"Script\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/\",\"url\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/\",\"name\":\"Entra ID automation: create group + Entra ID role assignment\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/au2mator.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/business-au2mator.jpg\",\"datePublished\":\"2026-01-16T08:06:25+00:00\",\"dateModified\":\"2026-02-06T15:17:21+00:00\",\"description\":\"Automate Entra ID group creation with Microsoft Graph + PowerShell and assign an Entra role. Why securityEnabled=true matters + full script.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#primaryimage\",\"url\":\"https:\\\/\\\/au2mator.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/business-au2mator.jpg\",\"contentUrl\":\"https:\\\/\\\/au2mator.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/business-au2mator.jpg\",\"width\":1920,\"height\":1280},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/au2mator.com\\\/de\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Entra ID Automation: Entra ID Gruppe automatisch erstellen und Entra Rolle zuweisen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/au2mator.com\\\/de\\\/\",\"name\":\"au2mator\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/au2mator.com\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#organization\",\"name\":\"au2mator\",\"url\":\"https:\\\/\\\/au2mator.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/au2mator.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/HPLogoau2mator-2.png\",\"contentUrl\":\"https:\\\/\\\/au2mator.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/HPLogoau2mator-2.png\",\"width\":396,\"height\":86,\"caption\":\"au2mator\"},\"image\":{\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCUdkfOxKtCj0_21WjRv5q-w\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/au2mator\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/au2mator.com\\\/de\\\/#\\\/schema\\\/person\\\/78abba259d89006577bbc425337be0c9\",\"name\":\"webtrics-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13d520bf15c8be79a6cb06ea7cdcd2966b32edbf74ae9f6013b835ae983674c8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13d520bf15c8be79a6cb06ea7cdcd2966b32edbf74ae9f6013b835ae983674c8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13d520bf15c8be79a6cb06ea7cdcd2966b32edbf74ae9f6013b835ae983674c8?s=96&d=mm&r=g\",\"caption\":\"webtrics-admin\"},\"sameAs\":[\"https:\\\/\\\/au2mator.webtrics.at\"],\"url\":\"https:\\\/\\\/au2mator.com\\\/de\\\/blog\\\/author\\\/webtrics-admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Entra ID automation: create group + Entra ID role assignment","description":"Automate Entra ID group creation with Microsoft Graph + PowerShell and assign an Entra role. Why securityEnabled=true matters + full script.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/","og_locale":"de_DE","og_type":"article","og_title":"Entra ID automation: create group + Entra ID role assignment","og_description":"Automate Entra ID group creation with Microsoft Graph + PowerShell and assign an Entra role. Why securityEnabled=true matters + full script.","og_url":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/","og_site_name":"au2mator","article_published_time":"2026-01-16T08:06:25+00:00","article_modified_time":"2026-02-06T15:17:21+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/business-au2mator.jpg","type":"image\/jpeg"}],"author":"webtrics-admin","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"webtrics-admin","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#article","isPartOf":{"@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/"},"author":{"name":"webtrics-admin","@id":"https:\/\/au2mator.com\/de\/#\/schema\/person\/78abba259d89006577bbc425337be0c9"},"headline":"Entra ID Automation: Entra ID Gruppe automatisch erstellen und Entra Rolle zuweisen","datePublished":"2026-01-16T08:06:25+00:00","dateModified":"2026-02-06T15:17:21+00:00","mainEntityOfPage":{"@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/"},"wordCount":294,"commentCount":0,"publisher":{"@id":"https:\/\/au2mator.com\/de\/#organization"},"image":{"@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#primaryimage"},"thumbnailUrl":"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/business-au2mator.jpg","articleSection":["Script"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/","url":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/","name":"Entra ID automation: create group + Entra ID role assignment","isPartOf":{"@id":"https:\/\/au2mator.com\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#primaryimage"},"image":{"@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#primaryimage"},"thumbnailUrl":"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/business-au2mator.jpg","datePublished":"2026-01-16T08:06:25+00:00","dateModified":"2026-02-06T15:17:21+00:00","description":"Automate Entra ID group creation with Microsoft Graph + PowerShell and assign an Entra role. Why securityEnabled=true matters + full script.","breadcrumb":{"@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#primaryimage","url":"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/business-au2mator.jpg","contentUrl":"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/business-au2mator.jpg","width":1920,"height":1280},{"@type":"BreadcrumbList","@id":"https:\/\/au2mator.com\/de\/blog\/entra-id-automation-gruppe-erstellen-rolle-zuweisen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/au2mator.com\/de\/home\/"},{"@type":"ListItem","position":2,"name":"Entra ID Automation: Entra ID Gruppe automatisch erstellen und Entra Rolle zuweisen"}]},{"@type":"WebSite","@id":"https:\/\/au2mator.com\/de\/#website","url":"https:\/\/au2mator.com\/de\/","name":"au2mator","description":"","publisher":{"@id":"https:\/\/au2mator.com\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/au2mator.com\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/au2mator.com\/de\/#organization","name":"au2mator","url":"https:\/\/au2mator.com\/de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/au2mator.com\/de\/#\/schema\/logo\/image\/","url":"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/HPLogoau2mator-2.png","contentUrl":"https:\/\/au2mator.com\/wp-content\/uploads\/2026\/01\/HPLogoau2mator-2.png","width":396,"height":86,"caption":"au2mator"},"image":{"@id":"https:\/\/au2mator.com\/de\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/channel\/UCUdkfOxKtCj0_21WjRv5q-w","https:\/\/www.linkedin.com\/company\/au2mator\/"]},{"@type":"Person","@id":"https:\/\/au2mator.com\/de\/#\/schema\/person\/78abba259d89006577bbc425337be0c9","name":"webtrics-admin","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/13d520bf15c8be79a6cb06ea7cdcd2966b32edbf74ae9f6013b835ae983674c8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/13d520bf15c8be79a6cb06ea7cdcd2966b32edbf74ae9f6013b835ae983674c8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/13d520bf15c8be79a6cb06ea7cdcd2966b32edbf74ae9f6013b835ae983674c8?s=96&d=mm&r=g","caption":"webtrics-admin"},"sameAs":["https:\/\/au2mator.webtrics.at"],"url":"https:\/\/au2mator.com\/de\/blog\/author\/webtrics-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/posts\/1545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/comments?post=1545"}],"version-history":[{"count":2,"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/posts\/1545\/revisions"}],"predecessor-version":[{"id":1548,"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/posts\/1545\/revisions\/1548"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/media\/1331"}],"wp:attachment":[{"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/media?parent=1545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/categories?post=1545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/au2mator.com\/de\/wp-json\/wp\/v2\/tags?post=1545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}