SpanningCloudApps / SB365-Powershell

Spanning Backup for Office 365 REST API PowerShell Module
https://spanning.com
Apache License 2.0
10 stars 5 forks source link

Unauthorized error #63

Closed GitHubJens closed 2 years ago

GitHubJens commented 2 years ago

I'm following the guide on how to create a token, but the views doesn't look like they do in the video. It seems to me that Kaseya acquired Spanning a while back and since then have migrated all of this into their own portal.

I have tried creating a token in Kaseya with REST API access: image

But when I try this token I get an unauthorized error: image

Can you point me in the right direction?

GitHubJens commented 2 years ago

You can close this one. It works against our own tenant when creating the token via https://o365-eu.spanningbackup.com. I will contact support for info on how to create tokens for other customers.

SPMatthewMcD commented 2 years ago

Every tenant has to issue its own token for users in that tenant. You have to login to each tenant and generate the token from there. You can't use any other method. Login to your other tenants as an Admin (either Global or Spanning) and you can generate the token.

At this time, you cannot use the VSA/UniView SSO user to generate the token.

I can support you here.

GitHubJens commented 2 years ago

Ah! Thanks for the info :)


Från: Matthew McDermott @.> Skickat: Monday, July 4, 2022 11:49:16 PM Till: SpanningCloudApps/SB365-Powershell @.> Kopia: Jens Andersson @.>; State change @.> Ämne: Re: [SpanningCloudApps/SB365-Powershell] Unauthorized error (Issue #63)

Every tenant has to issue its own token for users in that tenant. You have to login to each tenant and generate the token from there. You can't use any other method. Login to your other tenants as an Admin (either Global or Spanning) and you can generate the token.

At this time, you cannot use the VSA/UniView SSO user to generate the token.

— Reply to this email directly, view it on GitHubhttps://github.com/SpanningCloudApps/SB365-Powershell/issues/63#issuecomment-1174412935, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHJ5E7IGD2YD4ZSMBVJWHFLVSNL5ZANCNFSM52TKAOPQ. You are receiving this because you modified the open/close state.Message ID: @.***>

SPMatthewMcD commented 2 years ago

Let me know if you have issues and I'll help.