Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Error with Grant credentials

Answered
New post

Comments

4 comments

  • Official comment
    Kourtney

    Hey Andrew - Things look ok on the backend for this client ID. It looks like in your screenshot you're passing an email address as the value of box_subject_id. Instead you need to pass the user ID of your AutomationUser. 

    Kourtney, Box Developer Advocate

    Comment actions Permalink
  • Andrew Nunez

    1 comment I will make is this app is authorized. 

    0
    Comment actions Permalink
  • Andrew Nunez

    Thanks Kourtney for the help, 

    I've changed the box_subject_id to what I believe is the id of the automation user: 1564667 

    looking at the API to list enterprise users that automation user is not present in that list... So I then also tried using the admin user id as the box_subject_id and it still is giving me same error

    {"error":"invalid_grant","error_description":"Grant credentials are invalid"} Thanks!

    0
    Comment actions Permalink
  • Andrew Nunez

    Nevermind, I was able to find the enterprise ID I need to use under the 'App Info' 

    0
    Comment actions Permalink

Please sign in to leave a comment.