cancel
Showing results for 
Search instead for 
Did you mean: 

Help adding guest users using the API

Help adding guest users using the API

dspatel
New Contributor

Hi, ultimately I would like to add guest users using the API. At the moment, I'm having trouble authenticating. So far, using post man I have done the below and get 403: access_denied.

 

curl --location --request GET 'http://cloud-va.aerohive.com/xapi/v1/monitor/devices?ownerId=2'

--header 'Authorization: Bearer <ACCESS_TOKEN_FROM_EXTREMECLOUD_IQ>'

--header 'X-AH-API-CLIENT-ID: <CLIENT_ID_FROM_DEV_PORTAL>'

--header 'X-AH-API-CLIENT-SECRET: <CLIENT_SECRET_FROM_DEV_PORTAL>'

--header 'X-AH-API-CLIENT-REDIRECT-URI: https://hivemanager.example.com'

 

I used the Client ID from the development portal to generate the API Access Token in the Cloud Hive Manager.

As we're not using the on-prem Hive Manager I set a dummy Redirect URL (https://hivemanager.example.com) in both the development portal.

 

I get this error in Postman -

 

{

    "data": null,

    "error": {

        "status": 403,

        "code": "access_denied",

        "rawMessage": "ULKvmfFXwD: null"

    }

}

1 REPLY 1

dkraemer
New Contributor

Hello,

Your ownerId (in the URL) appears to be wrong. The value you need is the VIQ Id. You can find this by going to the person icon ->About Hivemanager

It will be the last value.

GTM-P2G8KFN