--- title: "Check permission" source_url: https://dev.digicert.com/certcentral-apis/services-api/authorization/check-permission.html api_method: GET api_endpoint: "/services/v2/authorization/view_orders" api_url: "https://www.digicert.com/services/v2/authorization/view_orders" --- **GET** `https://www.digicert.com/services/v2/authorization/view_orders` Use this endpoint to check if the authenticated user can perform the specified action. For possible `{{permission}}` values, see [Glossary – Permissions](https://dev.digicert.com/md/certcentral-apis/services-api/glossary.md#section-idm33288843703628). > **Info** > > You can append `/{{user_id}}` to this endpoint to check permissions for a specific user account. ## Example requests and responses **cURL** ```bash curl -X GET \ https://www.digicert.com/services/v2/authorization/view_orders \ -H 'Content-Type: application/json' \ -H 'X-DC-DEVKEY: {{api_key}}' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/authorization/view_orders" payload = "" headers = { 'X-DC-DEVKEY': "{{api_key}}", 'Content-Type': "application/json" } response = requests.request("GET", url, data=payload, headers=headers) print(response.text) ``` **Go** ```go package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/services/v2/authorization/view_orders" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-DC-DEVKEY", "{{api_key}}") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` **NodeJS** ```javascript var request = require("request"); var options = { method: 'GET', url: 'https://www.digicert.com/services/v2/authorization/view_orders', headers: { 'Content-Type': 'application/json', 'X-DC-DEVKEY': '{{api_key}}' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); ``` ## 200 OK ```json { "authorized": true, "permission": "view_orders" } ``` ## Response parameters
Name Type Description
authorized bool Specifies if the user is authorized to perform action.
Possible values: true, false
permission string Permission action. SeeGlossary – Permissions.