This depends on a number of factors. If:
- your original employer is based outside the UK, and
- your contract remains with your original employer, and
- there is also an expectation that you’ll return at the end of secondment,
then you won’t be ordinarily working in the UK. This means that you don’t have to be automatically enrolled.