grantRoleToFeature

abstract suspend fun grantRoleToFeature(featureId: String, roleName: String)(source)

Grant a role/permission to a feature.

Adds the specified role to the feature's permissions set. If the feature already has this permission, this operation is idempotent (no error or duplicate).

Parameters

featureId

Feature unique identifier

roleName

Role/permission name to grant

Throws

if feature doesn't exist