[NF] New function to get group and role names array by contacts ip array
[IM] Better logic for showing contacts role and groups information