DOCS-2243 add getRole and getRoles methods