Maintain control of your Microsoft 365 data
Post Reply
ks.any.cloud
Service Provider
Posts: 49
Liked: 3 times
Joined: Mar 04, 2021 2:17 pm
Full Name: Kim Svane
Location: Denmark
Contact:

REST API - Change password for basic auth

Post by ks.any.cloud »

Hi All

Have anyone created a script to change the basic auth user password ?
Or can tell me the exact body to post towards the server?

i tried the following:

{
"type": "Office365",
"region": "Worldwide",
"isExchangeOnline": true,
"isSharePointOnline": true,
"sharePointOnlineSettings": {
"account": "svcacc",
"password": "password",
"grantAdminAccess": true,
"useMfa": false,
"useCustomVeeamAADApplication": true
}
"exchangeOnlineSettings": {
"account": "svcacc",
"password": "password",
"grantImpersonation": true,
"useMfa": false,
"useCustomVeeamAADApplication": true
}
}

The examples does not include password when point to Cloud/online and not hybrid or onprem.
it might be an easy fix, but i cant quite get my head around this.

i get the error: "message": "Missing mandatory parameters: IsExchangeOnline."
Kim Svane @ any.cloud
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: REST API - Change password for basic auth

Post by nielsengelen »

Hi Kim, this may be a bug since I see you have the parameter included. Any chance u can open a support case for insight and let us know the case ID?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
ks.any.cloud
Service Provider
Posts: 49
Liked: 3 times
Joined: Mar 04, 2021 2:17 pm
Full Name: Kim Svane
Location: Denmark
Contact:

Re: REST API - Change password for basic auth

Post by ks.any.cloud »

Hi Niels

Sure: Case #04879670
Kim Svane @ any.cloud
ks.any.cloud
Service Provider
Posts: 49
Liked: 3 times
Joined: Mar 04, 2021 2:17 pm
Full Name: Kim Svane
Location: Denmark
Contact:

Re: REST API - Change password for basic auth

Post by ks.any.cloud »

Hi Niels

So, now i can run the postman script, and get a code 200.
That's fine, i just wrote to the support, but thought you might also have an answer.

If i want to update the password, how would i do it, i tested with just changing it. But it seems that this is only to edit things, like enableing things like teams.
Or have i missed something. :)
Kim Svane @ any.cloud
ks.any.cloud
Service Provider
Posts: 49
Liked: 3 times
Joined: Mar 04, 2021 2:17 pm
Full Name: Kim Svane
Location: Denmark
Contact:

Re: REST API - Change password for basic auth

Post by ks.any.cloud »

Hi again

I figured it out now, must have switched off my brain(Loong day).
Just enter the correct password, then it ofcourse works......

Thanks anyway! :)
Kim Svane @ any.cloud
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: REST API - Change password for basic auth

Post by nielsengelen »

Hi Kim, that is good to know. Thanks for updating us!
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
Post Reply

Who is online

Users browsing this forum: karsten123 and 12 guests