updateOrganizationLoginSecurity

tcanty
Here to help

updateOrganizationLoginSecurity

Hi All,

 

Hopefully a simple question, i've only used the api to get data previously but have come up with a use case where we would like to update the loginIpRanges within the updateOrganizationLoginSecurity.

 

What i'm not sure about, and have failed to find out via searching the net.

With the " /organizations/{organizationId}/loginSecurity" end point do we need to include all the object values or can we just pass the loginIpRanges

 

so can we just do (data is from 

{
"loginIpRanges": [
"192.195.83.1",
"192.195.83.255"
]

}

 

or do we need to include all of it...

 

{
"enforcePasswordExpiration": true,
"passwordExpirationDays": 90,
"enforceDifferentPasswords": true,
"numDifferentPasswords": 3,
"enforceStrongPasswords": true,
"enforceAccountLockout": true,
"accountLockoutAttempts": 3,
"enforceIdleTimeout": true,
"idleTimeoutMinutes": 30,
"enforceTwoFactorAuth": true,
"enforceLoginIpRanges": true,
"loginIpRanges": [
"192.195.83.1",
"192.195.83.255"
],
"apiAuthentication": {
"ipRestrictionsForKeys": {
"enabled": true,
"ranges": [
"192.195.83.1",
"192.168.33.33"
]
}
}
}

2 Replies 2
tcanty
Here to help

the answer was through self testing, you can just upload the one bit of information, and leave the rest untouched.

John_on_API
Meraki Employee
Meraki Employee

Hi @tcanty glad you got the answer, but in the future, you can see in the docs that there are no required parameters.

 

Hope this helps!

 

https://developer.cisco.com/meraki/api-v1/#!update-organization-login-security

Get notified when there are additional replies to this discussion.