|
1 | 1 | using namespace System.Net |
2 | 2 |
|
3 | | -Function Invoke-ListTenants { |
| 3 | +function Invoke-ListTenants { |
4 | 4 | <# |
5 | 5 | .FUNCTIONALITY |
6 | 6 | Entrypoint,AnyTenant |
@@ -95,15 +95,15 @@ Function Invoke-ListTenants { |
95 | 95 | } |
96 | 96 | if ($Request.Query.Mode -eq 'TenantList') { |
97 | 97 | # add portal link properties |
98 | | - $Body = $Body | Select-Object *, @{Name = 'portal_m365'; Expression = { "https://admin.microsoft.com/Partner/BeginClientSession.aspx?CTID=$($_.customerId)&CSDEST=o365admincenter" } }, |
99 | | - @{Name = 'portal_exchange'; Expression = { "https://admin.exchange.microsoft.com/?landingpage=homepage&form=mac_sidebar&delegatedOrg=$($_.defaultDomainName)" } }, |
| 98 | + $Body = $Body | Select-Object *, @{Name = 'portal_m365'; Expression = { "https://admin.cloud.microsoft/?delegatedOrg=$($_.initialDomainName)" } }, |
| 99 | + @{Name = 'portal_exchange'; Expression = { "https://admin.cloud.microsoft/exchange/?delegatedOrg=$($_.initialDomainName)" } }, |
100 | 100 | @{Name = 'portal_entra'; Expression = { "https://entra.microsoft.com/$($_.defaultDomainName)" } }, |
101 | | - @{Name = 'portal_teams'; Expression = { "https://admin.teams.microsoft.com/?delegatedOrg=$($_.defaultDomainName)" } }, |
| 101 | + @{Name = 'portal_teams'; Expression = { "https://admin.teams.microsoft.com/?delegatedOrg=$($_.initialDomainName)" } }, |
102 | 102 | @{Name = 'portal_azure'; Expression = { "https://portal.azure.com/$($_.defaultDomainName)" } }, |
103 | 103 | @{Name = 'portal_intune'; Expression = { "https://intune.microsoft.com/$($_.defaultDomainName)" } }, |
104 | 104 | @{Name = 'portal_security'; Expression = { "https://security.microsoft.com/?tid=$($_.customerId)" } }, |
105 | 105 | @{Name = 'portal_compliance'; Expression = { "https://purview.microsoft.com/?tid=$($_.customerId)" } }, |
106 | | - @{Name = 'portal_sharepoint'; Expression = { "https://admin.microsoft.com/Partner/beginclientsession.aspx?CTID=$($_.customerId)&CSDEST=SharePoint" } } |
| 106 | + @{Name = 'portal_sharepoint'; Expression = { "/api/ListSharePointAdminUrl?tenantFilter=$($_.defaultDomainName)" } } |
107 | 107 | } |
108 | 108 |
|
109 | 109 | } else { |
|
0 commit comments