DOCS-2245 add grantPrivilegesToRole method

FOR DOC TEAM REVIEW