2017-03-10 18 views

回答

0

偉大的問題。

你想得到的是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": "[email protected]" /*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" 
} 
    } 
} 
+0

是,謝謝您! –

相關問題