REST API and assigning request end-user

 
Author
Message
SysAider
18
 
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 Product Manager Community Manager
5168
 
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.

SysAider
2
 
Hello, sorry for questioning on an old post but the information is relevant to my problem.

All of these queries are used with the Sysaid specific UserID. How can I locate an individuals UserID by their username using the API?

Example: Something like the following:
https://company.sysaidit.com/api/v1/users?name=apiuser
Something like this would ideally return some information on the user, found by their username, like their ID. Is there a query like this that does what I am looking for?

Any suggestions are much appreciated!