# InherentPermissions attribute
> Version: _Available or changed with runtime version 9.0._
Specifies the permissions assigned to the scope of the method.
## Applies to
 Method
 Event
## Syntax
```al
[InherentPermissions(PermissionObjectType: PermissionObjectType, ObjectId: Integer, Permissions: Text [, InherentPermissionsScope: InherentPermissionsScope])]
```
### Arguments
PermissionObjectType
Type: ../methods-auto/permissionobjecttype/permissionobjecttype-option
Specifies the type of object that the attribute assigns permissions to.
ObjectId
Type: ../methods-auto/integer/integer-data-type
Specifies 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.
Permissions
Type: ../methods-auto/text/text-data-type
Specifies the permission values. You can specify the permissions using the syntax `<permission value>`.
*[Optional] InherentPermissionsScope*
Type: ../methods-auto/inherentpermissionsscope/inherentpermissionsscope-option
Specifies the scope of the permissions that are assigned (Entitlements, Permissions or Both).
## Remarks
For information about the `<permission value>` syntax, refer to ../properties/devenv-permissions-property#property-values or ../devenv-permissions-on-database-objects#permissions-on-objects.
## Example
```al
[InherentPermissions (PermissionObjectType::TableData, Database::"Customer", 'r', InherentPermissionsScope::Both)]
```
> NOTE
> InherentPermissionsScope is optional. The default value is Both, which includes permissions and entitlements. See ../methods-auto/inherentpermissionsscope/inherentpermissionsscope-option.
> NOTE
> You can use inherent permissions only for objects within the same extension.
## Related information
Get Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>

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. https://jonas-paprotka.de/docs/dev-itpro/developer/attributes/devenv-inherentpermissions-attribute/
