提问人:enzo 提问时间:11/17/2023 最后编辑:David Makogonenzo 更新时间:11/17/2023 访问量:26
Azure Databricks - 重新激活非活动用户
Azure Databricks - Reactivate an inactive user
问:
我正在尝试在 Databricks 中还原用户帐户。其当前状态为“非活动”。
我关注了这个 azure kb:(https://learn.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/users)
curl --netrc -X PATCH \
https://<databricks-instance>/api/2.0/preview/scim/v2/Users/<user-id> \
--header 'Content-type: application/scim+json' \
--data @update-user.json \
| jq .
我使用了“true”而不是“false”:
{
"schemas": [ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ],
"Operations": [
{
"op": "replace",
"path": "active",
"value": [
{
"value": "true"
}
]
}
]
}
我收到此输出,但该帐户仍处于非活动状态。
{
"emails": [
{
"type": "work",
"value": "[email protected]",
"primary": true
}
],
"displayName": "User",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:workspace:2.0:User"
],
"name": {
"familyName": "User",
"givenName": "User"
},
"externalId": "xxxx-xxxx-xx-xxxxx",
** "active": false,**
"groups": [
{
"display": "admins",
"type": "direct",
"value": "99999999999",
"$ref": "Groups/9999999999"
}
],
"id": "0000000000",
"userName": "[email protected]"
}
答: 暂无答案
评论