{"title":"Get a security group with the automation API","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/api/dynamics_securitygroup_get/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/api/dynamics_securitygroup_get, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/api/dynamics_securitygroup_get","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Use the Business Central automation API to get a security group, including its identifiers, retrieval status, and related security data.","date":"2026-08-05","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Get a security group with the automation API","slug":"get-a-security-group-with-the-automation-api","at":0,"chars":1365},{"level":2,"title":"HTTP request","slug":"http-request","at":125,"chars":269},{"level":2,"title":"Request headers","slug":"request-headers","at":394,"chars":72},{"level":2,"title":"Request body","slug":"request-body","at":466,"chars":61},{"level":2,"title":"Response","slug":"response","at":527,"chars":121},{"level":2,"title":"Example","slug":"example","at":648,"chars":540},{"level":2,"title":"Related information","slug":"related-information","at":1188,"chars":177}],"text":"# Get a security group with the automation API\nGet the properties and relationships of a security group in Business Central.\n## HTTP request\nReplace the URL prefix for Business Central depending on environment following the guideline<../../api-reference/v2.0/enabling-apis-for-dynamics-nav>.\n```http\nGET /microsoft/automation/v2.0/companies({companyId})/securityGroups('{securityGroupId}')\n```\n## Request headers\nHeader|Value\nAuthorization|Bearer {token}. Required.\n## Request body\nDon't supply a request body for this method.\n## Response\nIf successful, this method returns a `200 OK` response code and a securityGroup object in the response body.\n## Example\nRequest\nHere's an example of the request.\n```http\nGET https://api.businesscentral.dynamics.com/v2.0/{environment name}/api/microsoft/automation/v2.0/companies({companyId})/securityGroups('{securityGroupId}')\n```\nResponse\nHere's an example of the response.\n```json\n{\n    \"id\": \"00aa00aa-bb11-cc22-dd33-44ee44ee44ee\",\n    \"code\": \"FINANCE\",\n    \"groupName\": \"Finance\",\n    \"groupUserSecurityId\": \"aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb\",\n    \"groupId\": \"00aa00aa-bb11-cc22-dd33-44ee44ee44ee\",\n    \"retrievedSuccessfully\": true\n}\n```\n## Related information\nTips for working with the APIs<../../developer/devenv-connect-apps-tips>\nSecurity group<../resources/dynamics_securitygroup>\ndynamics_securitygroup_delete"}