I used the guide: https://help.k2.com/onlinehelp/k2five/icg/5.2/default.htm#Configure/SF/MultiAuthAAD.htm%3FTocPath%3DConfigure%7CK2%2520Site%7C_____2
After the configuration, I was able to generate a service instance and smartobjects. I can use the User SmO and get AAD users.
I then created a Realm so that users can log into K2 using AAD. However, I'm now getting 2 errors:
1) When trying to add an AAD user to the security in Management: "Service: URMService Service Guid: 4c2f62ea-be8d-4600-a2b5-185902bdd20a Severity: Error Error Message: Exception has been thrown by the target of an invocation. OAuth token requires authorization. InnerException Message: "
2) When attempting to log into Management using the AAD realm: