[General Topics] GoodSoul:
Update 04.01.2023: I've added shamiko magisk module to make this tutorial work again.

Update 19.07.2023: Some were able to make it work by cleaning the data of Google Play Store and Google Play Services. Added.

This question was asked many times and often all the answers did not work:

How do I get Magisk to work with Microsoft Apps like Microsoft Teams, Microsoft Outlook etc (protected by Microsoft Intune)?

With Magisk 24.1 it is finally possible to bypass the protection of Microsoft Intune. Here are the instructions on how to proceed. The solution requires root!

- First of all you need the latest Magisk version (24.2 or higher).

After installation select:

- Settings -> Hide the Magisk app : Select a new name of your choice (I use 'MM' for 'Magisk Manager')

- After Magisk has been hidden open 'Settings' and enable 'Zygisk (Beta)'

- uncheck Force Denylist in Magisk settings

- Select 'Configure DenyList'

- Use the magnifying glass and search for "Microsoft". You will find "Company Portal" (also known as Microsoft Intune).

Important: Expand the view by clicking on the entry. You will see something like this:

View attachment 5536587

- Now, with the expaned view, click the entry. It will look like this:

View attachment 5536595

- Repeat these step (first expand, then clicking the button) on each other Microsoft App - e.g. Microsoft Teams, Microsoft Outlook, ...

Important: If you do not expand the view it will not work!

Now, to make sure that this solution is really working ....

- Install YASNAC - Yet Another SafetyNet Attestation Checker from the Google Play Store.

- Run the SafetyNet Attestation on YASNAC

When it fails is shows something like this:

Fix Basic integrity

- To fix the Basic integrity you need to install the latest Universal SafetyNet Fix from Github.

- Download the ZIP and install it as a module in Magisk (24.1 or higher).

- Reboot again and restart the YASNAC - Yet Another SafetyNet Attestation Checker. It should now pass (at least) the Basic integration.

If this is not the case you might also need to fix your CTS profile match. You can resolve this by doing the following steps:

- Download and install the latest release of MagiskHide Props Config from Github in Magisk as a Module.

- Restart your Phone!

- Launch a Terminal of your choice (e.g. Termux, Android Terminal Emulator, ...).

- Type 'su' (enter) and agree to the root dialog.

- Now type 'props' (enter) ...

... select '1' for Edit device fingerprints

... select 'f' for Pick a certified fingerprint

... select a vendor of your phone (e.g. Xiaomi, Poco, Google, Samsung, Oneplus ...)

... select your phone (if available) or a phone which is next to your phone with your installed Android version (for example 9,10,11).

- After selecting the fingerprint for your device, and when the program ends.

Now, lets continue:

- Install Shamiko and make sure that you uncheck Force Denylist in Magisk settings (update 04.01.2023)

- Delete data from the following Apps: Google Play Store and Google Play Services (update 19.07.2023)

- reboot your device

After reboot another check of YASNAC - Yet Another SafetyNet Attestation Checker should the look like this:

Important:

Once YASNAC shows Pass on Basic integrity and CTS profile match you can use any Banking App (e.g. Google Pay, N26, DKB, Sparkasse, Revolut, bunq, <whatever>) by repeating the inital steps for each of these Apps and it should not detect root. You might need to clear the data before the app stops complaining about a rooted device (example Google Pay).

If you find this tutorial helpful please leave a like for this post - thanks in advance.