Muokkaa

Jaa


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

Remarks

For information about the <permission value> syntax, refer to permissions values or permissions on objects.

Example

[InherentPermissions (PermissionObjectType::TableData, Database::"Customer", '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.

Note

You can use inherent permissions only for objects within the same extension.

Get Started with AL
Developing Extensions