This article describes how you can add a unique constraint to a field of a hosted feature layer in AGOL. Is this functionality not present in Enterprise Portal? The edit button is not present when trying to add a unique constraint to a hosted feature layer field in enterprise.