{"title":"InherentPermissions attribute","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/attributes/devenv-inherentpermissions-attribute/","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/developer/attributes/devenv-inherentpermissions-attribute, 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/developer/attributes/devenv-inherentpermissions-attribute","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":"Specifies the permissions assigned to the scope of the method.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":123,"chars":29},{"level":2,"title":"Syntax","slug":"syntax","at":152,"chars":1054},{"level":3,"title":"Arguments","slug":"arguments","at":331,"chars":875},{"level":2,"title":"Remarks","slug":"remarks","at":1206,"chars":202},{"level":2,"title":"Example","slug":"example","at":1408,"chars":419},{"level":2,"title":"Related information","slug":"related-information","at":1827,"chars":111}],"text":"> Version: _Available or changed with runtime version 9.0._\nSpecifies the permissions assigned to the scope of the method.\n## Applies to\n Method\n Event\n## Syntax\n```al\n[InherentPermissions(PermissionObjectType: PermissionObjectType, ObjectId: Integer, Permissions: Text [, InherentPermissionsScope: InherentPermissionsScope])]\n```\n### Arguments\nPermissionObjectType\nType: ../methods-auto/permissionobjecttype/permissionobjecttype-option\nSpecifies the type of object that the attribute assigns permissions to.\nObjectId\nType: ../methods-auto/integer/integer-data-type\nSpecifies the ID of the object that permissions are assigned to. You can specify the object by its ID (integer) or by its name using the syntax `<ObjectType>::<ObjectName>`, such as `Codeunit::MyCodeunit`. It is recommended to specify the object by name for readability.\nPermissions\nType: ../methods-auto/text/text-data-type\nSpecifies the permission values. You can specify the permissions using the syntax `<permission value>`.\n*[Optional] InherentPermissionsScope*\nType: ../methods-auto/inherentpermissionsscope/inherentpermissionsscope-option\nSpecifies the scope of the permissions that are assigned (Entitlements, Permissions or Both).\n## Remarks\nFor information about the `<permission value>` syntax, refer to ../properties/devenv-permissions-property#property-values or ../devenv-permissions-on-database-objects#permissions-on-objects.\n## Example\n```al\n[InherentPermissions (PermissionObjectType::TableData, Database::\"Customer\", 'r', InherentPermissionsScope::Both)]\n```\n> NOTE\n> InherentPermissionsScope is optional. The default value is Both, which includes permissions and entitlements. See ../methods-auto/inherentpermissionsscope/inherentpermissionsscope-option.\n> NOTE\n> You can use inherent permissions only for objects within the same extension.\n## Related information\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}