REST API and assigning request end-user

 
Author
Message
SysAider
17
 
Hi,

I'm using the REST API to create service requests. I have that working. My issue now is that the service request is submitted by the user who authenticates.

Can I have a super admin login and create the request for any registered end user?

Thank you.

Jonathan
SysAid Community Manager Product Team
4923
 
Hi Jonathan,

If you're trying to input the Request User, add the following:

{
"key":"request_user",
"value":"11"
}
The value is the userId (not user name).

Cheers,
Danny
SysAider
10
 
Danny Tashiev wrote: Hi Jonathan,

If you're trying to input the Request User, add the following:

{
"key":"request_user",
"value":"11"
}
The value is the userId (not user name).

Cheers,
Danny


How it's good read the posts before ask a questionS
You've answered my question, Danny. Thanks!
SysAider
10
 
Jonathan wrote:Hi,

I'm using the REST API to create service requests. I have that working. My issue now is that the service request is submitted by the user who authenticates.

Can I have a super admin login and create the request for any registered end user?

Thank you.

Jonathan


Hey Jonathan,

What was the best way that you found to get the user_id?

Thank's!
SysAider
10
 
jonys_coelho wrote:
Jonathan wrote:Hi,

I'm using the REST API to create service requests. I have that working. My issue now is that the service request is submitted by the user who authenticates.

Can I have a super admin login and create the request for any registered end user?

Thank you.

Jonathan


Hey Jonathan,

What was the best way that you found to get the user_id?

Thank's!


Somebody?

The ref_id in the table sysaid_user is pointing to another user.
SysAider
10
 
Hey guys!

It's everthing ok now.