→ Having trouble accessing our new support portal or creating a ticket? Please notify our team here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gschally
Engaged Sweeper

We are integrating calls to the Lansweeper API for a client.  When a user calls in to the helpdesk we would like to lookup their Lansweeper data and display some information for the helpdesk agent. 

We have successfully set up our API access and are authenticating and getting an access token. We can test various GraphQL queries using Postman, but when we try to lookup account data for a use we are failing. We tried the example in the documentation at this link for getting authorized accounts, realizing we would have to filter it:

https://docs.lansweeper.com/docs/api/getting-data#get-asset-details

under heading "Listing authorized accounts", but we get 403 - Unauthorized.  Our account has full admin rights. 

Can you please advise the best way to do this?

Thanks,

George S.

 

 

1 REPLY 1
David_GF
Lansweeper Tech Support
Lansweeper Tech Support

Hi @gschally, when using the Lansweeper API to access account data, just make sure that the user making the request has the right permissions, especially the "View accounts" permission. If you see a 403 - Unauthorized error, it's likely because of not having enough permissions.



~~~~~~~ (〃 ̄︶ ̄)人( ̄︶ ̄〃) ~~~~~~~
Sweep that LAN, sweep it!

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now