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


[InherentPermissions(PermissionObjectType: PermissionObjectType, ObjectId: Integer, Permissions: Text [, InherentPermissionsScope: InherentPermissionsScope])]


 Type: PermissionObjectType
Specifies the type of object that the attribute assigns permissions to.

 Type: Integer
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.

 Type: Text
Specifies the permission values. You can specify the permissions using the syntax <permission value>.

[Optional] InherentPermissionsScope
 Type: InherentPermissionsScope
Specifies the scope of the permissions that are assigned (Entitlements, Permissions or Both).


[InherentPermissions (PermissionObjectType:Table, Database:"Customers", 'r', InherentPermissionsScope:Both)]


Specifying InherentPermissionsScope is optional and the default is Both that includes permissions and entitlements. To read about different types of scope, see InherentPermissionsScope Option.

See Also

Get Started with AL
Developing Extensions