DOCS-2245 add grantPrivilegesToRole method

READY FOR DOCS TEAM REVIEW