Granting Replication Role to the Maintenance User

Use sp_role to grant replication role to the maintenance user.

In the database, execute:
sp_role "grant", replication_role, maintenance_user