{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":40395,"path":"platform-security/authentication/api-access-policy-prioritization.md","title":"API access policy prioritization","bundle":null,"doc_type":null,"release":"australia","body":"\n# API access policy prioritization\n\nLearn about the policy prioritization logic if there are multiple API access policy configured for your ServiceNow® instance.\n\nAPI access policies are prioritized based on the type of REST API policy set on your ServiceNow® instance.\n\nThe approach is defining different weights for each part of the API such as,method, resource, and version.\n\nThe API policy is prioritized for non-global first, then global. In other words, a non-global access policy will always override a global API access policy.\n\nPrioritization logic are as follows:\n\n<table id=\"table_cb3_5nh_bwb\"><thead><tr><th>\n\nFields\n\n</th><th>\n\nPriority\n\n</th><th>\n\nPrioritization Logic\n\n</th></tr></thead><tbody><tr><td>\n\nMethod, resource, and version\n\n</td><td>\n\n1\n\n</td><td>\n\nIf the 3 fields matches with the policy then that policy takes the 1st priority.\n\n</td></tr><tr><td>\n\nMethod+ resource\n\n</td><td>\n\n2\n\n</td><td>\n\nIf the 2 fields matches with the policy then that policy takes the 1st priority.\n\n</td></tr><tr><td>\n\nResource + version\n\n</td><td>\n\n3\n\n</td><td>\n\nIf the 2 fields along with the field **Apply to all methods** matches with the policy then that policy takes the 3rd priority.\n\n</td></tr><tr><td>\n\nResource\n\n</td><td>\n\n4\n\n</td><td>\n\nIf the field along with the field **Apply to all methods** matches with the policy then that policy takes the 4th priority.\n\n</td></tr><tr><td>\n\nMethod + version\n\n</td><td>\n\n5\n\n</td><td>\n\nIf the 2 fields along with the field **Apply to all resources** matches with the policy then that policy takes the 5th priority.\n\n</td></tr><tr><td>\n\nMethod\n\n</td><td>\n\n6\n\n</td><td>\n\nIf the field along with the field **Apply to all resources** matches with the policy then that policy takes the 5th priority.\n\n</td></tr><tr><td>\n\nVersion\n\n</td><td>\n\n7\n\n</td><td>\n\nIf the field along with the fields **Apply to all methods** and **Apply to all versions** matches with the policy then that policy takes the 7th priority.\n\n</td></tr><tr><td>\n\nGlobal but not Apply to all methods\n\n</td><td>\n\n8\n\n</td><td>\n\nIf the fields **Global** is `true` and **Apply to all methods** is `false` then that policy takes the 8th priority.\n\n</td></tr><tr><td>\n\nGlobal and Apply to all methods\n\n</td><td>\n\n9\n\n</td><td>\n\nIf the fields **Global** is `true` and **Apply to all methods** is `true` then that policy takes the 9th priority.\n\n</td></tr></tbody>\n</table>"}}