列出通过邮递员分配给应用程序的 Okta 用户名
List Okta usernames assigned to app via postman
有没有办法通过 Postman 列出分配给应用程序的用户名。我不是在寻找 Okta 用户名,而是在寻找传递给 SP 的用户名。如果是,有没有办法将响应限制为仅该值,而不是列出用户时返回的所有值?
好问题。
你想得到的是SAML断言中发送的内容对吗?
我可以用这样的方法得到它:
oktaorg../api/v1/apps/0oa1775fsuhaO5wKD1d8/users/00uy74c0h7NGTLBSXQOC
这是它返回的内容
{ "id": "00uy74c0h7NGTLBSXQOC",
"externalId": null,
"created": "2017-03-10T19:17:05.000Z",
"lastUpdated": "2017-03-10T19:17:05.000Z",
"scope": "GROUP",
"status": "ACTIVE",
"statusChanged": "2017-03-10T19:17:05.000Z",
"passwordChanged": null,
"syncState": "DISABLED",
"lastSync": null,
"credentials": {
"userName": "oktaadmin2@okta.com" /*this is what you want I think */
},
"profile": {},
"_links": {
"app": {
"href": "https://companyx.okta.com/api/v1/apps/0oa1775fsuhaO5wKD1d8"
},
"group": {
"name": "Everyone",
"href": "https://companyx.okta.com/api/v1/groups/00gy74c0gzOSVLSLVYIG"
},
"user": {
"href": "https://companyx.okta.com/api/v1/users/00uy74c0h7NGTLBSXQOC"
}
}
}
有没有办法通过 Postman 列出分配给应用程序的用户名。我不是在寻找 Okta 用户名,而是在寻找传递给 SP 的用户名。如果是,有没有办法将响应限制为仅该值,而不是列出用户时返回的所有值?
好问题。
你想得到的是SAML断言中发送的内容对吗?
我可以用这样的方法得到它:
oktaorg../api/v1/apps/0oa1775fsuhaO5wKD1d8/users/00uy74c0h7NGTLBSXQOC
这是它返回的内容
{ "id": "00uy74c0h7NGTLBSXQOC",
"externalId": null,
"created": "2017-03-10T19:17:05.000Z",
"lastUpdated": "2017-03-10T19:17:05.000Z",
"scope": "GROUP",
"status": "ACTIVE",
"statusChanged": "2017-03-10T19:17:05.000Z",
"passwordChanged": null,
"syncState": "DISABLED",
"lastSync": null,
"credentials": {
"userName": "oktaadmin2@okta.com" /*this is what you want I think */
},
"profile": {},
"_links": {
"app": {
"href": "https://companyx.okta.com/api/v1/apps/0oa1775fsuhaO5wKD1d8"
},
"group": {
"name": "Everyone",
"href": "https://companyx.okta.com/api/v1/groups/00gy74c0gzOSVLSLVYIG"
},
"user": {
"href": "https://companyx.okta.com/api/v1/users/00uy74c0h7NGTLBSXQOC"
}
}
}