3

API 文档中不清楚是否可以在 Okta 中激活用户一旦被停用。我可以看到它们在被停用后进入取消配置状态,并且我知道用户将从任何应用程序中被拉出(全部根据文档),但文档中没有回答我的问题。

我可以进行更新以将用户的状态设置为“暂存”并使用更新的配置文件对象,然后调用激活吗?

4

1 回答 1

0

我不知道STAGED状态,但我知道您可以重新激活已停用的用户。以下是GET对已停用用户的请求:

{
    "id": "00ueq20eKcFJlFzHz355",
    "status": "DEPROVISIONED",
    "created": "2018-08-01T08:29:38.000Z",
    "activated": "2018-08-02T12:02:26.000Z",
    "statusChanged": "2018-08-02T12:03:38.000Z",
    "lastLogin": null,
    "lastUpdated": "2018-08-02T12:03:38.000Z",
    "passwordChanged": null,
    "profile": {
        "firstName": "Jim",
        "lastName": "Bean",
        "mobilePhone": "083274628237462",
        "secondEmail": null,
        "login": "jim.bean@test.com",
        "email": "jim.bean@test.com"
    },
    "credentials": {
        "provider": {
            "type": "OKTA",
            "name": "OKTA"
        }
    },
    "_links": {
        "activate": {
            "href": "https://mydomain.okta.com/api/v1/users/00ueq20eKcFJlFzHz355/lifecycle/activate",
            "method": "POST"
        },
        "self": {
            "href": "https://mydomain.okta.com/api/v1/users/00ueq20eKcFJlFzHz355"
        },
        "delete": {
            "href": "https://mydomain.okta.com/api/v1/users/00ueq20eKcFJlFzHz355",
            "method": "DELETE"
        }
    }
}

通过向您发送POST请求https://mydomain.okta.com/api/v1/users/00ueq20eKcFJlFzHz355/lifecycle/activate可以激活用户。

于 2018-08-02T12:13:17.943 回答