djmajor97
Contributor
Contributor

User doesn't have sufficient permissions to perform this operation or 500 error

Hello,

I'm trying to test the UEM mdm API using a free account. Right now, I'm making the calls from the API explorer.

I authenticated by adding the test credentials for an admin user that I created and I added a header for aw-tenant-code that is the "AirWatchAPI" API key that was auto-created when I turned on the REST API from the page https://cnxxxx.awmdm.com/AirWatch/#/AirWatch/Settings/RESTApi. API access is enabled and under the "Authentication" tab, all the options are enabled.

For the admin I'm testing with, I created a new one at https://cnxxxx.awmdm.com/AirWatch/#/Admin/List. I created a new custom role that has maximum permission (read/write access to everything). But when I try to make a request from the API doc (using "Try it out!", also ran these in postman), I get the 403 error: "User doesn't have sufficient permissions to perform this operation".

When I query https://asxxx.awmdm.com/api/system/info, I get the response below.

"Resources": {
        "Workspaces": [
            {
                "Name": "Mobile Device Management",
                "Location": "https://as1688.awmdm.com/API/mdm"
            },
            {
                "Name": "Mobile Application Management",
                "Location": "https://as1688.awmdm.com/API/mam"
            },
            {
                "Name": "Mobile Content Management",
                "Location": "https://as1688.awmdm.com/API/mcm"
            },
            {
                "Name": "Mobile Email Management",
                "Location": "https://as1688.awmdm.com/API/mem"
            },
            {
                "Name": "System Administration",
                "Location": "https://as1688.awmdm.com/API/system"
            }
        ],
        "Collections": []
    },

 

When I do the same thing but with the credentials of the admin for my overall account, I get a 500 error: "Internal Server Error". Anyone know what is going on?

 

 

0 Kudos
0 Replies