Class: Permissions
api/entities/Asset/Base/Permissions.Permissions
Handles all Asset Permissions related functionality
Hierarchy
-
Namespace
<BaseAsset
>↳
Permissions
Methods
createGroup
▸ createGroup(args
, opts?
): Promise
<GenericPolymeshTransaction
<CustomPermissionGroup
, CustomPermissionGroup
>>
Create a Permission Group for this Asset. Identities can be assigned to Permission Groups as agents. Agents assigned to a Permission Group have said group's permissions over the Asset
Parameters
Name | Type |
---|---|
args | CreateGroupParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<CustomPermissionGroup
, CustomPermissionGroup
>>
Note
this method is of type ProcedureMethod, which means you can call createGroup.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Defined in
api/entities/Asset/Base/Permissions/index.ts:69