Skip to content

users /lifecycle/activate API not returning ActivationUrl #477

@nhsiehgit

Description

@nhsiehgit

Describe the bug

Looking at the documentation here,
We have an internal testing request thats sending a POST request to  POST /api/v1/users/{userId}/lifecycle/activate?sendEmail=false

const request: Okta.UserApiActivateUserRequest = {userId, sendEmail: false};
const activationToken: UserActivationToken = await oktaSdkClient().userApi.activateUser(request);

We're expecting this to return a response with

{
  "activationToken": "XE6wE17zmphl3KqAPFxO",
  "activationUrl": "https://{yourOktaDomain}/tokens/XE6wE17zmphl3KqAPFxO/verify"
}

specifically looking for the activationUrl since sendEmail is set to false per documentation
however the response doesn't seem to be including this still.

Could someone confirm that this is still the expected response?

(apologies - i know this is not an sdk issue)

Reproduction Steps?

POST /api/v1/users/{userId}/lifecycle/activate?sendEmail=false

inspect response

SDK Versions

version 7.1.1

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions