refactor. extracted global function to assign RSSR to a user
refactor. use gloabl function to assign role