Add entity permission grant and revoke API.