AdamGrossTX / asquaredozen

0 stars 0 forks source link

Updated Information about the AdminService/SMS Provider API in SCCM/ConfigMgr 1810-A Square Dozen | A. Gross Blog #8

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Updated Information about the AdminService/SMS Provider API in SCCM/ConfigMgr 1810-A Square Dozen | A. Gross Blog

A.Gross Blog | Adam Gross Enterprise Mobility MVP

https://www.asquaredozen.com/2018/12/04/updated-information-about-the-sms-provider-api-in-sccm-configmgr-1810/

nodiaque commented 2 years ago

Hello, I know this post is old but I'm having issue with postman and sccm administration service. Whatever I try, even a simple GET, I get a 401 unauthorized error. I tried NTLM, basic and digest auth, none work. It work without any problem in powershell and in browser. My SCCM SSL certificates are all certificates generated from PKI, thus nothing is self-signed. Do you have any clues on to why it's not working?

THank you

AdamGrossTX commented 2 years ago

Saw your post on Reddit today about this https://www.reddit.com/r/SCCM/comments/q6lgwk/admin_service_rest_api/. You mention that you're using Postman. Postman doesn't work for AdminService due to the way AdminService auth works. You should be able to switch over to Fiddler to perform the queries using the Composer option - more info here https://www.telerik.com/blogs/api-testing-with-telerik-fiddler.

Hope this helps.

Ryan198ecs commented 2 years ago

Hi and Hello Adam Gross. Thanks for your great posts on this site. they really do help with SCCM/MEM. As mentioned in the comments above. I am also getting a 401 unauthorized error with our implementation. Several sites, including this one mention ideas of using of a web front end and being able to integrate with the Admin Service via REST however the Negotiate protocol used for authentication is a bit of a real pain to used when several API systems don't nativly support Negotiate. Unfortunately we can't use customisations due to a strict migration policy. We have posted a question to a Q&A forum but as of yet they has not been a response. https://docs.microsoft.com/en-us/answers/questions/614413/trying-to-authenticate-against-sccm-admin-service.html

Do you have an recommendation on how we can use AD (not AAD) service accounts from in-house web portal systems to connect to the Admin Service?

Many Thanks for your help.

InderjeetSingh777 commented 2 years ago

Hello @AdamGrossTX

Could you please share the Postman version for which you posted successful request to AdminService?

Also, could you please share the required headers for making request to AdminService via some script or what's the flow we should be following to get a successful response.

This will be really helpful if you can provider answers.

Thanks

nirmesh commented 1 year ago

hello @inderjeet777,

Have you got it working on postman? I am unable to execute on postman.

vimodev commented 1 year ago

Are you able to pass parameters to the RunScript endpoint? I am unable to find anything anywhere, I have a script I'd like to run, but the script has parameters.