Ethnic identity in the social security system of local communities