Replies: 5 comments
-
Hello, Do you know if you the app is approved in the tenant. Also, do you know if the consent requires approval? Gust tenants should be visible if this is enabled in settings. However, this queries an API that might need consent as well. I've seen environments where tenant admins must approve consent requests and app registrations. I've also seen where the API to get available tenants is blocked by proxy. However, if you see other tenants in the list, then that API is working. If you are Global Admin in the other tenant you should be able to see the consent request and approve them documented here: https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/review-admin-consent-requests Let me know how it goes. Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi @Micke-K hmmm, weird. until now i had used the "start.cmd" to start the tool (no errors showing in the console), whereas now i tried with Start-IntuneManagement.ps1. It generates quite a lot red error messages. And after successfully logging in, it doesn't show the other two tenants?! See below the errors. I will see if I missed something on the powershell modules etc. Details
Add-Type: (3,41): error CS0246: The type or namespace name 'INotifyPropertyChanged' could not be found (are you missing a using directive or an assembly reference?) Add-Type: (44,22): error CS0246: The type or namespace name 'PropertyChangedEventHandler' could not be found (are you missing a using directive or an assembly Add-Type: (63,47): error CS0234: The type or namespace name 'ObservableCollection<>' does not exist in the namespace 'System.Collections.ObjectModel' (are you missing an Add-Type: (79,47): error CS0234: The type or namespace name 'ObservableCollection<>' does not exist in the namespace 'System.Collections.ObjectModel' (are you missing an Add-Type: (84,63): error CS0234: The type or namespace name 'ObservableCollection<>' does not exist in the namespace 'System.Collections.ObjectModel' (are you missing an Add-Type: (67,65): error CS0234: The type or namespace name 'ObservableCollection<>' does not exist in the namespace 'System.Collections.ObjectModel' (are you missing an Add-Type: (51,76): error CS0246: The type or namespace name 'PropertyChangedEventArgs' could not be found (are you missing a using directive or an assembly reference?) Add-Type: Cannot add type. Compilation errors occurred. Add-Type: C:\Users\xxx\Source\IntuneManagement\CS\TokenCacheHelperEx.cs(14,9): error CS0012: The type 'MulticastDelegate' is defined in an assembly that is notreferenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Add-Type: C:\Users\xxx\Source\IntuneManagement\CS\TokenCacheHelperEx.cs(15,9): error CS0012: The type 'MulticastDelegate' is defined in an assembly that is notreferenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Add-Type: C:\Users\xxx\Source\IntuneManagement\CS\TokenCacheHelperEx.cs(33,23): error CS0103: The name 'ProtectedData' does not exist in the current context ? ProtectedData.Unprotect(File.ReadAllBytes(CacheFilePath), ^ Add-Type: C:\Users\xxx\Source\IntuneManagement\CS\TokenCacheHelperEx.cs(35,21): error CS0103: The name 'DataProtectionScope' does not exist in the current context Add-Type: C:\Users\xxx\Source\IntuneManagement\CS\TokenCacheHelperEx.cs(50,37): error CS0103: The name 'ProtectedData' does not exist in the current context ProtectedData.Protect(args.TokenCache.SerializeMsalV3(), ^ Add-Type: C:\Users\xxx\Source\IntuneManagement\CS\TokenCacheHelperEx.cs(52,61): error CS0103: The name 'DataProtectionScope' does not exist in the current context |
Beta Was this translation helpful? Give feedback.
-
Update: I had previously started it from VScode terminal. When I open a powershell and run there the start-withconsole.cmd I don't get any error messages on startup, but now at least I see an error when trying to access the other tenant. But the request consent doens't seem to work as expected. (I had tried with the default permissions enabled and disabled too). See below. I will see if I can add the graph permissions manually. Details
C:\Users\xxx\Source\IntuneManagement>cmd /c powershell -version 5 -ex bypass -file "C:\Users\xxx\Source\IntuneManagement\Start-IntuneManagement.ps1" -ShowConsoleWindow |
Beta Was this translation helpful? Give feedback.
-
Hello You VS code probably defaults to PowerShell 7 where all the Add-Type commands fails. I don't expect it to work if you can't see the Intune PowerShell Application. Not sure if I've approved the app in another tenant through the tool. Sounds like something isn't working properly. You could try change the app to Graph Module. Let me know if you find anything. Cheers! |
Beta Was this translation helpful? Give feedback.
-
VScode: will look into it. Thanks. I have switch to the Graph Module. But it didn't get installed in the guest tenant -> so I logged in once with the global admin of the guest tenant and the app got installed. Afterwards I was able to access everything from my main tenant. But the same doesn't work with the Intune PowerShell App -> even after logging in with the global admin of the guest tenant and having the app installed (i checked it in the azure enterprise applications) I cannot use it from my main tenant. |
Beta Was this translation helpful? Give feedback.
-
Hi
If I login with the Global Admin of a tenant, everything works as expected. I would like to use my partner user to access the other tenants. What access right (GDAP? Azure?) do I need to be able to access the other tenants? Some of the tenants at least show up in the list of the app, but I cannot access anything of the functionality (everything red). When I use the "request consent" option and approve it, I still don't have any access. Is there a documentation on the multi tenant access rights?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions