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

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

Arguments

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

ObjectId
 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.

Permissions
 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).

Example

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

Note

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