Skip to main content


 

Symptoms


The prospect was attempting to access a given user account's manager information by relating to the user account's display name and/or email address. To achieve this the prospect was trying to use an Azure Active Directory (AAD) User SmartObject and fire the Get Manager method against the aforementioned properties. When trying this they received the following error:

Service: AAD_k2sup01_sharepoint_com___sites___brandingtest Service Guid: ed6bccd0-3ea4-4acc-bc6c-ec29998ea888 Severity: Error Error Message: Resource 'h.jordan@k2sup02.onmicrosoft.com' does not exist or one of its queried reference-property objects are not present. InnerException Message:

NOTE: 'h.jordan@k2sup02.onmicrosoft.com' in the message is an email address but using the display name will throw the same error.

 

Diagnoses


The AAD User SmartObject is a tad misleading. The SmartObject gives every impression that it is referencing Azure Active Directory, it's not. The SmartObject is actually reference the Identity.Identity table in SQL Azure. That SmartObject requires the input of an FQN and anything else will just through an error.



 

Resolution

The UMUser SmartObject is built to reference AAD directly. By using this SmartObject the end user can access any property of a user account by going through another property. The Azure Active Directory events in K2 designer are built off of this SmartObject and as such we can leverage them in a workflow to return basically whatever we want. Just feed in the property you have, such as display name, and the event will fetch up all of its associated properties with in the context of AAD.


 




 
Be the first to reply!

Reply