Giving rights to users on AAD results in an error

  • 16 February 2021
  • 0 replies
  • 37 views

Userlevel 5
Badge +20
 

Giving rights to users on AAD results in an error

kbt150756

PRODUCT
K2 Cloud
K2 Five
BASED ON
K2 Five 5.1
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

When trying to add AAD accounts to K2 5.1 the below error is presented:

"Service URMService Service Guid {GUID} Severity: Error Error
Message: Exception has been thrown by the target of an invocation. OAuth token requires authorization. InnerException Message."

Image

Symptoms

This error relates to incorrect consent given to the admin account and not the K2 Service account as the K2 Service account and the Tenant admin need to "handshake" before all the AAD accounts will be allowed to sync up with K2 identity.

Resolution

Please do the following to grant the K2 Service account consent to perform this task:
Log in with the K2 service account and go to the SmartObject tester tool and execute the following Azure SmartObject:

SmartObject Explorer > Azure Active Directory > Users > then execute with the Get List Method

Image

This can also be done via K2 Management:

Image

Once this is done, grant consent for the K2 Service account using the tenant admin account.

Image

 

 


0 replies

Be the first to reply!

Reply