update user role and application slug