Js Snclient

const response = await repository.security.getAllPermissions('/Root/Content/IT')