revokeRoleFromFeature

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

Revoke a role/permission from a feature.

Removes the specified role from the feature's permissions set. If the feature doesn't have this permission, this operation is idempotent (no error).

Parameters

featureId

Feature unique identifier

roleName

Role/permission name to revoke

Throws

if feature doesn't exist