Okta User Activation Email Token

We have a process, using the SDK, that is as follows:

  1. new user = await client.Users.CreateUserAsync - where the Active is set to fasle.
  2. newUser.Profile changes
  3. newUser.UpdateAsync()
  4. Add user to various groups using client.Groups.AddUserToGroupAsync
  5. newUser.ActivateAsync(true);

This last set use in the Okta org to send the invitation email.

The problem is the link in the email when click notifies the new user the Token has expired.

Can anyone explain this and what should be done to fix this?