Queries the logon preference of CloudSSO users.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:GetLoginPreference |
get |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the CloudSSO directory. |
d-00fc2p61**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
8CE8B990-193D-50CE-A604-69F3E7DCE740 |
| LoginPreference |
object |
The logon preference. |
|
| LoginNetworkMasks |
string |
The IP address whitelist. CloudSSO users can log on to the CloudSSO user portal only from IP addresses in the whitelist. This whitelist applies only to CloudSSO users who log on to the CloudSSO user portal by using the username-password logon or single sign-on (SSO) method. It does not apply to CloudSSO users who access accounts in a resource directory from the CloudSSO user portal. An empty value indicates that no IP address whitelist is configured. |
192.168.0.0/16;10.0.0.0/8 |
| AllowUserToGetCredentials |
boolean |
Whether users can obtain programmatic access credentials after logging on to the CloudSSO user portal. Valid values:
|
True |
Examples
Success response
JSON format
{
"RequestId": "8CE8B990-193D-50CE-A604-69F3E7DCE740",
"LoginPreference": {
"LoginNetworkMasks": "192.168.0.0/16;10.0.0.0/8",
"AllowUserToGetCredentials": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.