Currently, system.user.addRole exists and allows the creation of a role through scripting. The functionality missing is the ability to apply a role to a user through scripting.
This would provide significant advantages in automating projects as well as make the system.user.addRole function truly usable, as I'd imagine the number of scenarios where you would automatically create a role and then manually apply a role to any users that need it are very few.