Replaced arguments entityId with username in GetPermissions Method