REST POST that chooses a user from user reference field isn't populating

ctsmith
Mega Sage

I have a POST function that works on every field I've tried except for choosing a user from user reference field.

The body is:

{"name":"Chris Test","memory":"32","managed_by":"xxx4fxc30a0a3c53217xxxxeb21742c5"}

It will create a new record and populate the new fields in the body except for managed_by.   I tried sys_id based on the REST API Explorer, and it worked with my admin account internally, worked with admin account externally, but not with the system user I created.   I added full admin rights to the system user to see, and that still didn't work.

Any ideas of why this isn't working?


Thanks!

1 ACCEPTED SOLUTION

So...   I ended up having to put an ACL on a seemingly unrelated field.   And, I had to clear out the session cookies in Postman, then the managed_by started returning.     Very odd it was just an issue on this one field, but solved.


View solution in original post

6 REPLIES 6

Hi Chris,



Any update on this?


Can you mark answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

So...   I ended up having to put an ACL on a seemingly unrelated field.   And, I had to clear out the session cookies in Postman, then the managed_by started returning.     Very odd it was just an issue on this one field, but solved.