{"title":"userGroup resource type","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/resources/dynamics_usergroup/","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/resources/dynamics_usergroup, 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/resources/dynamics_usergroup","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":"An user group object in Dynamics 365 Business Central.","date":"2024-05-31","meta":{"topic":"reference"},"outline":[{"level":1,"title":"userGroup resource type","slug":"usergroup-resource-type","at":0,"chars":1891},{"level":2,"title":"Methods","slug":"methods","at":536,"chars":352},{"level":2,"title":"Navigation","slug":"navigation","at":888,"chars":198},{"level":2,"title":"Properties","slug":"properties","at":1086,"chars":385},{"level":2,"title":"JSON representation","slug":"json-representation","at":1471,"chars":236},{"level":2,"title":"Related information","slug":"related-information","at":1707,"chars":184}],"text":"# userGroup resource type\nRepresents an user group in Dynamics 365 Business Central.\n> NOTE\n> For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central<../../api-reference/v2.0/enabling-apis-for-dynamics-nav>.\n> NOTE\n> User groups are replaced with security groups<../../upgrade/deprecated-features-user-groups> and will be deprecated in version 25. See security group APIs<dynamics_securitygroup> and Control Access to Business Central Using Security Groups</ui-security-groups>.\n## Methods\nMethod|Return Type|Description\n../api/dynamics_usergroup_get|userGroup|Gets a user group object.\n../api/dynamics_usergroup_delete|none|Deletes a user group object.\nPOST userGroup<../api/dynamics_usergroup_create>|userGroup|Creates a user group object.\nPATCH userGroup<../api/dynamics_usergroup_update>|userGroup|Updates a user group object.\n## Navigation\nNavigation|Return Type|Description\ndynamics_usergrouppermission|userGroupPermissions|Gets the permissions of the userGroup.\ndynamics_profile|profile|Gets the profile of the userGroup.\n## Properties\nProperty|Type|Description\nid|GUID|The unique ID of the user group. Non-editable.\ncode|string|The code of the user group.\ndisplayName|string|Specifies the user group's name. This name will appear on all sales documents for the user group.\ndefaultProfileID|string|The ID of the defaultProfile.\nassignToAllNewUsers|boolean|If true, all new users are assigned to user group.\n## JSON representation\nHere is a JSON representation of the userGroup resource.\n```json\n{\n    \"id\": \"GUID\",\n    \"code\": \"string\",\n    \"displayName\": \"string\",\n    \"defaultProfileID\": \"string\",\n    \"assignToAllNewUsers\": \"boolean\"\n}\n```\n## Related information\n../api/dynamics_usergroup_get\n../api/dynamics_usergroup_delete\nPOST userGroup<../api/dynamics_usergroup_create>\nPATCH userGroup<../api/dynamics_usergroup_update>"}