Adding code for membership role

Adding code for membership role