Set domainpermissions on entity