Before an OSDK app ships, its registration decides what it can reach. Palantir's Application restrictions documentation says a token's scope is set at runtime as the intersection of three things.
Those are:
- the Foundry permissions of the user or service user
- the application's maximum restrictions in Developer Console
- the scope the code requests at authorization time
The same page describes the Developer Console restrictions as the maximum scope an application can ever have.
In our view, this setup deserves as much care as the app code itself.
Our earlier guides covered Pilot reaching general availability and previewing OSDK React apps on live, read-only data in SuperRepo. This guide follows the UI route through Developer Console.
What you are registering
Palantir's Developer Console overview says: "Developer Console is the UI-first way to configure a custom application: you assemble it here, and Foundry generates and publishes the SDK for the resources you add." The Ontology SDK overview says an application can also be defined in code in SuperRepo, where the OSDK is generated locally.
A custom application bundles an authorization client, one or more generated SDKs, SDK documentation and permissions. The overview describes the authorization client as "An OAuth client that allows human and service users programmatic access to Foundry."
The OSDK overview says: "The functions and types generated for the OSDK are based on just the subset of the Ontology relevant to you." It lists npm for TypeScript, pip or Conda for Python, Maven for Java, and an OpenAPI spec for other languages.
Before you start
You need two grants, according to Palantir's Developer Console permissions page:
- The Create application operation on the target folder. Owner or Editor roles grant it by default.
- The Create third-party applications workflow on the organization. The Third-party application administrator role in Control Panel typically grants it.
The same page says administrators can build custom role sets that grant only Developer Console permissions. Those role sets withhold broader OAuth client administration, such as Manage OAuth 2.0 clients. Ask for that if your team should manage apps but not every OAuth client.
Register the application
- Create the application in Developer Console. The OSDK overview puts this first, followed by a language-specific bootstrap guide. Hosting on Foundry is optional.
- Pick the application type. The Application restrictions page says to choose Backend service if the app can securely store client credentials. Choose Client-facing application if it is a frontend that cannot. Palantir says: "An application configured only as a Client-facing application uses a public OAuth client and has no client secret." The permissions page adds: "The same application could include both a client-facing and backend type."
- Pick the permission type. User permissions use the Authorization code grant. Palantir says: "A user's permissions will determine what they can read and write to the Foundry Ontology." Application permissions use the Client credentials grant. Palantir says: "Your application will use a generated service user for permissions rather than applying user permissions." The docs also say: "Client-facing applications must use the user permissions option and the Authorization code grant OAuth workflow."
- Choose resources. If your app only calls platform APIs, select "No, I will not use an Ontology SDK" on the Resources page. Otherwise, add only the object types, interfaces, actions and functions the app needs.
- If you chose Backend service, copy the secret now. Palantir says: "This is the only time the secret is visible; if you lose it, you must rotate the secret."
- Check restrictions after creation. The restricted or unrestricted setting is not in the wizard; you set it on the OAuth & restrictions page. Palantir says: "Restricted applications are created by default."
- Generate the SDK. The permissions page says Editors can add or modify entities and generate new OSDK versions. Viewers can use the generated OSDK but cannot do either.
How scoping works
The restrictions page says adding a resource on the Ontology SDK tab does two things at once. "The application's resource restrictions will allow access to the listed resources." And: "Any new SDKs generated for the application will include the listed resources."
Dependent resources are added automatically, the permissions page says. Users still need permissions for those resources. The restrictions limit them to resources approved for that application through the given OAuth token.
For restricted applications, platform API restrictions work per project. Palantir says: "Restricted applications may only read or write to resources inside these projects." It also says restricted applications must explicitly add every endpoint they call to the operation restrictions list in the Platform SDK panel.
Two defaults matter. Palantir says: "Token requests that do not request a scope will default to allowing all of the user's permissions that are allowed by the OAuth client's restrictions." It also says: "Attempting to request a token with no scope restrictions will generate a token with no permissions." For unrestricted apps, Palantir says: "Unrestricted applications that use the authorization code grant must request a scope."
Can an app see more than its user?
Under user permissions, the documentation's intersection rule means no. The app's restrictions narrow what the user can already reach. The OSDK overview says: "Secure by design: The OSDK uses a token that is scoped only to the ontological entities you want your application to access, in addition to the user's own permissions to the data."
Palantir says of restricted applications: "This minimizes cases of privilege escalation where application code uses the access of its user to take an action that the application builder did not have access to." It adds that restrictions can guarantee a control-room app never shows sensitive content, whoever is logged in.
Application permissions are the deliberate exception. Palantir's example: "If you want users to be able to view all Bikes, regardless of user permissions, choose to apply Application permissions to grant separate permissions for the application using a generated service user." The docs describe using both together, with Cars under user permissions and Bikes under application permissions.
Service-user flows
Service users belong to backend services using the client credentials grant. The restrictions page says the first part of the token intersection depends on the grant. For authorization code grants it is the application user's Foundry permissions. For client credentials grants it is the service user's.
So a service-user token starts from the service user's own permissions, not those of the person using the app. It is then narrowed by restrictions and the requested scope.
On backend services, the permissions page says: "The applications may be used to securely store client credentials." To limit who can rotate a secret, Palantir describes a custom role with only the Rotate third-party application client secret operation, granted for a specific application.
Restricted, unrestricted and older OAuth clients
Palantir says unrestricted apps use only user permissions and the operations requested at authorization time. It warns: "Only use unrestricted applications with trusted code." Its listed use case is when resources "cannot be defined at deployment time", such as projects that do not yet exist. Palantir also says: "Switching to an unrestricted application removes your current project access and operation restriction configuration."
Palantir's February 2026 announcements deprecated standalone OAuth clients. That page calls the setting "scoped" and "unscoped". The current restrictions page uses "restricted" and "unrestricted" for what appears to be the same setting.
The announcement says: "Client enablement project access restrictions are not compatible with Developer Console applications, whether scoped or unscoped." Palantir directs builders to add project and API restrictions in Developer Console under Platform SDK instead.
When the Ontology changes
Palantir says: "If the required dependencies for the resources in your application's SDK change after you added them, you should update your application's resource access restrictions to include the changed dependencies." Its example is a new backing dataset on an object type already in the SDK.
Removals need the most care. Palantir says the current app version breaks if removed resources leave the restrictions immediately. The documented pattern is to remove the resource from the SDK, keep it in the restrictions until every client runs the new version, then clean up.
Developer Console asks whether to keep the resource in the restrictions when you remove it from the SDK.
Watch out for
- Secrets in front-end code. Of client-facing apps, Palantir says: "These applications must not be used to store client credentials."
- Over-broad scopes. Add only the resources the app needs, and keep unrestricted apps for trusted code.
- Long-lived tokens. The overview says the Sharing and tokens page lets you "Generate long-lived scoped tokens for programmatic access." Know who holds them.
- Early restriction cleanup. Keep removed resources in the restrictions until clients upgrade.
- The resource cap. Palantir says: "By default, each Developer Console application is limited to a total of 1000 data resources and resource access restrictions."
- LMS-backed functions. An OSDK front end may call Language Model Service-backed logic through actions. If it does, the permissions page says the logged-in user needs at least Viewer on the Developer Console application.
What to watch
We think the design works in builders' favor: restrictions are on by default, and adding a resource scopes the token and the SDK in one move. In our view, the step to watch most closely is your own SDK version rollout. That is where the documented keep-then-remove sequence protects users who have not upgraded yet.
