Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Only 1 of 2 keys provided for lookup, provide keys for UserId,SecurityRoleIdentifier

(0) ShareShare
ReportReport
Posted on by 5

I am working on a logic app using the Fin & Ops apps connection to call Dynamics

I am trying to delete a user role but getting the following error

  "status": 400,
  "message": "Only 1 of 2 keys provided for lookup, provide keys for UserId,SecurityRoleIdentifier.
  "error": {
    "message": "Only 1 of 2 keys provided for lookup, provide keys for UserId,SecurityRoleIdentifier."
  }
The connection only asks for the UserId, and I can't see how I can pass the SecurityRoleIdentifier
I checked the logic app code in the CodeView, the path format is as below:
datasets/environment/tables/SecurityUserRoles/items/UserID
                                              
so, there isn't a way of passing the SecurityRoleIdentifier

I also tried passing the SecurityRoleIdentifier in the body, but that didn't help
  • Movand Profile Picture
    Movand 5 on at
    RE: Only 1 of 2 keys provided for lookup, provide keys for UserId,SecurityRoleIdentifier

    Thank you. This worked!

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,996 Super User 2025 Season 1 on at
    RE: Only 1 of 2 keys provided for lookup, provide keys for UserId,SecurityRoleIdentifier

    Hi Movand,

    In the Object id field, you would need to have two values separated with a comma. Do you have the value for the SecurityRoleIdentifier to be deleted?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans