anchor.diff:      {
           <<"urn:mace:egi.eu:group:fedcloud.egi.eu:child:role=owner#aai.egi.eu">>,
           #{
  -            topGroupType => organization,
  +            originGroupType => unit,
  +            topGroupType => team,
               subGroupsType => role_holders
           },
           #idp_entitlement{idp = egi, path = [
  -            #idp_group{type = organization, name = <<"fedcloud.egi.eu">>, privileges = member},
  +            #idp_group{type = unit, name = <<"aai.egi.eu">>, privileges = member},
  +            #idp_group{type = team, name = <<"fedcloud.egi.eu">>, privileges = member},
               #idp_group{type = role_holders, name = <<"child">>, privileges = member}
           ], privileges = admin}
       },
       {
  -        <<"urn:mace:egi.eu:group:egi-engage-members:role=manager#aai.egi.eu">>,
  -        #{},
  -        #idp_entitlement{idp = egi, path = [
  +        <<"urn:mace:egi.eu:group:egi-engage-members:role=manager#sso.egi.eu">>,
  +        #{},
  +        #idp_entitlement{idp = egi, path = [
  +            #idp_group{type = organization, name = <<"sso.egi.eu">>, privileges = member},
               #idp_group{type = team, name = <<"egi-engage-members">>, privileges = member}
           ], privileges = manager}
       },
  
positive.code:         <<"urn:mace:egi.eu:group:egi-engage-members:role=admin#aai.egi.eu">>,
          #{},
          #idp_entitlement{idp = egi, path = [
              #idp_group{type = team, name = <<"egi-engage-members">>, privileges = member}
          ], privileges = admin}
      },
      {
          <<"urn:mace:egi.eu:group:egi-engage-members:role=chair#aai.egi.eu">>,
          #{},
          #idp_entitlement{idp = egi, path = [
              #idp_group{type = team, name = <<"egi-engage-members">>, privileges = member}
          ], privileges = admin}
      },
      {
          <<"unconfromant-group-name">>,
  
negative.code: parse_egi_entitlement(<<"urn:mace:egi.eu:group:", Group/binary>>, ParserConfig) ->
      % Strip out the prefix standard for EGI
  
      OriginGroupType = maps:get(originGroupType, ParserConfig, organization),
      TopGroupType = maps:get(topGroupType, ParserConfig, team),
      SubGroupsType = maps:get(subGroupsType, ParserConfig, team),
  
      [GroupStructureEncoded, Origin] = binary:split(Group, <<"#">>),
      % Replace plus sings with spaces
      GroupStructure = binary:replace(GroupStructureEncoded, <<"+">>, <<" ">>, [global]),
      GroupTokens = binary:split(GroupStructure, <<":">>, [global, trim_all]),
  