An API access policy decides which authentication types can reach an inbound REST or SOAP API, and under which conditions such as IP range or role. You install the matching plugin, build an authentication profile, attach it to a policy, and for REST calls link an auth scope to the OAuth entity whose tokens should reach that API.
What an API access policy controls
Each policy names a target API, one or more inbound authentication profiles and optional filter criteria.
Policies work at three levels for non-interactive sessions: REST API, SOAP API, and system or export processors. For the design decisions that come before any of this, see the REST and SOAP security and access design guide.
| Policy level | Plugin |
|---|---|
| REST API | com.glide.rest.policy |
| SOAP API | com.glide.soap.policy |
| System or export processor | com.glide.processor.policy, installed with the SOAP plugin |
Installing the plugins
The REST policy plugin needs the admin role. Navigate to All, then System Applications, then All Available Applications, filter by name or plugin ID, and select Install. If domain separation and delegated administration are enabled, the administrative user must sit in the global domain, or the install fails with a plugin activation error.
The SOAP plugin follows the same route and also needs the admin role. The REST API Auth Scope plugin, com.glide.rest.auth.scope, is a separate step. It needs the OAuth 2.0, REST API Provider, Authentication scope and REST API Scope plugins first. The REST API Scope plugin was added in the Tokyo release. The roles for this step are api_service_admin and adaptive_auth_policy_admin.
Building the authentication profile
Build the authentication profile first. Navigate to All, then System Web Services, then API Access Policies, then Inbound Authentication Profiles. Select New and choose the option to create a standard HTTP authentication profile.
Fill in the Name, Description, Active flag and Application. The Type field offers Basic Auth, ID Token, Certificate based Auth and OAuth. The OAuth Entity field appears when the type is ID Token or OAuth. For the wider picture of what each method involves, see the authentication methods guide.
Add authentication policies with Insert a new row. IP range, role-based, user-based, mutual authentication and customized authentication policies can all be attached. Do not select Allow Access Policy or Deny Access Policy for API work, because those two are meant for user logins.
The WWW-Authenticate header matters when a client is rejected. With a REST API access policy active, the header carries the latest mapped profile. Setting the property glide.security.response.authenticate.header.auth_profile.first_scheme_only to false returns each configured scheme as its own header.
Creating a REST API access policy
Navigate to All, then System Web Services, then REST API Access Policies. Select New, fill in the required fields and submit. Reopen the saved record to reach the remaining fields.
Choose the REST API, such as the Attachment API, and the path, method, version and resource fill in from that choice.
The apply-to flags set the breadth of the policy. Global covers all methods, versions and resources of the API. Apply to all methods, Apply to all resources and Apply to all versions widen one dimension each, and clearing a flag pins that dimension to a value. A policy covering several versions needs one record per version.
Advertise all auth schemes defaults to false, so the WWW-Authenticate header lists the latest profile alone. To attach a profile, double-click Insert a new row in the inbound authentication section and pick one. You can create standard HTTP, WSSE, API Key or HMAC profiles from the New option.
How overlapping policies are ranked
Several policies can match one request, so the platform ranks them by how precisely they pin down method, resource and version. A non-global policy overrides a global one.
| Rank | Pattern the policy matches |
|---|---|
| 1 | Method, resource and version all set to specific values |
| 2 | Method and resource set |
| 3 | Resource and version set, with apply to all methods |
| 4 | Resource set, with apply to all methods |
| 5 and 6 | Method, or method and version, with apply to all resources |
| 7 | Version set, with apply to all methods and all versions |
| 8 | Global, without apply to all methods |
| 9 | Global, with apply to all methods |
Setting up SOAP API access policies
Navigate to All, then System Web Services, then API Access Policies, then SOAP API Access Policies, and select New. Name the policy, pick the SOAP API it covers (the GetProperty API serves as the example here), set the Application and tick Active. Add a standard HTTP or WSSE profile in the Inbound Authentication section with Insert a new row, then submit.
For one rule across all SOAP APIs, create a global policy on the processor. Navigate to All, then System Security, then Process Access Policies. Use SOAPProcessor (Authentication profile) as the processor, keep the Application at Global, and set the Authentication Profile to the Global SOAP Auth Profile. This needs the Processor Access policy plugin, an existing authentication profile and the same two roles. A policy set on one SOAP API overrides this global rule for that API.
Configuring REST API auth scope
Before any scope exists, a client with no scope reaches the APIs, except APIs protected by a scope and clients that hold the useraccount scope. Once a REST API Auth Scope record exists, the protected API is reached through a token whose OAuth entity carries that scope.
Navigate to All, then API Auth Scopes, then REST API Auth Scope, and select New. Enter a unique Name, tick Active, and choose the REST API and the Auth Scope. The path, version and resource fill in automatically.
Three checkboxes set breadth across HTTP methods, versions and resources. Clear one to choose that dimension yourself.
| Record | Methods | Versions | Resources | Effect |
|---|---|---|---|---|
| Scope 1 | All | All | All | Covers all calls to the API |
| Scope 2 | GET | All | All | Covers GET calls |
| Scope 3 | GET | latest | /now/table/{tableName} | Covers one GET path |
With all three in place, a GET request can use any of the three scopes.
Then link the scope to the OAuth entity that should reach the API. A new OAuth entity starts with an empty scope, so add the scope and run the OAuth flow to obtain a token. Changing that link later affects existing tokens, because the scope is read from the linked entity at runtime rather than stored in the token. An entity linked to useraccount reaches any API, so reserve that link for entities that need that breadth.
Properties and tables to know
| Item | Type | Purpose | Default or recommended |
|---|---|---|---|
| sys_auth_scope | Table | Stores auth scope records, with unique global names | Not applicable |
| sys_api_access_scope | Table | Links a REST API to an auth scope | Not applicable |
| com.glide.rest.api.auth.scope.check.enable | Property | Switches the platform scope check on or off | true |
| glide.rest.policy.normalize_apply_all_fields | Property | Normalizes the lookup key when apply-to-all flags are set | Recommended true; default true; fallback false |
Older policy records can hold a specific value while their apply-to-all flag is also set. Without normalization, the lookup uses the stored value, so the policy matches that value alone. With normalization on, the stored value is dropped when the flag is set, and the policy matches the full scope its record declares.
Turning it on widens the reach of affected policies, as intended, so check existing configurations for unintended requirements before production rollout. The underlying risk is rated medium, with a severity score of 6.5, because a policy that looks active while missing requests is an authorization gap.
The useraccount property matters once that predefined scope is deleted and recreated; write the new record’s sys_id into glide.oauth.token.scope.useraccount, because runtime compares sys_id values, not names.
Troubleshooting common failures
For failure patterns that cut across the whole integration stack, see the REST and SOAP troubleshooting guide.
| Symptom | What to check |
|---|---|
| Scope linked, but no check runs even with a Bearer token | Confirm the sys_api_access_policy record is active, since runtime ignores inactive records. Confirm the check-enable property is not false. Confirm whether the token holds the useraccount scope, which skips the check. |
| A token with scope 2 reaches an API linked to scope 1 | Confirm the record is active. Look for other records covering the same API with different methods, versions or resources, because a match on any one returns results. |
| No scope check for Basic Auth or mutual auth | Expected. REST API auth scope applies to OAuth access tokens and OIDC tokens, not to Basic Auth, session cookies or certificate authentication. |
| HTTP 403 with an OAuth token and the message “Missing required api access scope” | The scope check failed for that API. Compare the OAuth entity’s linked scopes with the scope on the API. |
Frequently asked questions
Does a global policy replace the endpoint policies I already have?
No. A narrow endpoint policy outranks a broad global rule, so endpoint records keep their precedence.
Can one OAuth entity hold more than one auth scope?
Yes. One OAuth entity can link several scopes, and each token it issues carries the same set.
Can one endpoint carry different scopes for different callers?
Not by defining a second scope for the same endpoint, because the platform enforces a unique check per endpoint. Several scopes can still match one endpoint, and a token holding any one of them gets through, so the callers’ scopes overlap rather than being separated.
Why does my recreated useraccount scope not work?
Runtime compares sys_id values, not names, so point glide.oauth.token.scope.useraccount at the new sys_id.
For the instance-wide picture, see the instance security and access control guides. For the OAuth entity behind a scope, see OAuth profiles explained. The other integration guides sit under the REST and SOAP integrations hub.