Adds the given role to the user account.
Rather than creating a series of users and apply permissions to those users individually, OrientDB allows you to define roles for the user. A role provides a series of permissions, granting the user access to whatever resources they may require to perform the given action on the database. Using this method, you can add a role to the user account.
OSecurityUser OSecurityUser().addRole(OSecurityRole role)
||Defines the role you want to add|
This method returns the updated
OSecurityUser instance. You can then use the return value to chain several operations together in preparing a user to operate on the database.