mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 08:16:01 +03:00
[GH-ISSUE #144] Could not load tenants: Failed to connect to API: #88
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @karnophage on GitHub (Oct 28, 2021).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/144
Describe the bug
Permissions test says: We could not connect to the API to retrieve the permissions. There might be a problem with the secure application model configuration. The returned error is: 400 - Response status code does not indicate success: 400 (Bad Request).
I understand this is to do with the Secure App Model config, but I don't know where to start troubleshooting that.
Running the checkup script you posted, produces the following:
C:\kris\cyberdrain\checkup.ps1 : Could not connect to Graph API for *******.onmicrosoft.com. Cannot validate argument on parameter 'Tenant'. The argument is
null or empty. Provide an argument that is not null or empty, and then try the command again.
At line:1 char:1
New-PSSession : [ps.outlook.com] Connecting to remote server ps.outlook.com failed with the following error message : For more information, see the
about_Remote_Troubleshooting Help topic.
At C:\kris\cyberdrain\checkup.ps1:33 char:20
C:\kris\cyberdrain\checkup.ps1 : Could not connect to Exchange for ******.onmicrosoft.com. Cannot validate argument on parameter 'Session'. The argument is
null. Provide a valid value for the argument, and then try running the command again.
At line:1 char:1
C:\kris\cyberdrain\checkup.ps1 : Could not connect to Graph API for *****.onmicrosoft.com. Cannot validate argument on parameter 'Tenant'. The argument is
null or empty. Provide an argument that is not null or empty, and then try the command again.
At line:1 char:1
This would point to a permission error in the SAM, but I've no idea where to start looking. I've run it and it returns keys fine. I've put those into the scripts.
@gavsto commented on GitHub (Oct 28, 2021):
@karnophage Have a read of https://www.gavsto.com/secure-application-model-for-the-layman-and-step-by-step/
If that doesn't help please come in to the MSPGeek Slack #cipp and I can try help further.
As this is not related to the product but more the Secure Application Model I'm going to close it.
@karnophage commented on GitHub (Nov 2, 2021):
Sorted using your direction, thanks @gavsto
@joshk1902 commented on GitHub (Dec 13, 2023):
@karnophage What was the fix?