BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Securing SAP CAP Applications: XSUAA, Roles, and Authorization Best Practices

Walks through securing a CAP service end to end: declaring scopes and role templates in xs-security.json for the SAP Authorization and Trust Management service (XSUAA), restricting CDS service definitions with @restrict per role, and dropping into handler code where a rule needs custom logic, with a @sap/cds Node.js example that tests roles through req.user.is and a Java one that tests scopes through hasScope. It closes in the BTP cockpit, where a role collection is assigned to users so that their JWT carries the scopes those checks read.

Where it sits

Explains
AuthorizationCAPAuthorizationcapabilityDeciding who may read or change what, at service, entity and instance level — role checks, forwarded user context, and restrictions evaluated as query filters rather than after the fact.
Source
reachable

Who is behind it

Soumya-Pirlamarlaauthor

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
7,106

For authorization

on the edge
Applies in
authored
cap

More on this26

Group by26 of 26 pieces
Piece, what it offersStill applies
Also explainingAuthorization26
Securing a CAP Node.js App with SAP AMS on BTP Cloud Foundry
SAP Community, Jacky LiuThe reasoningA recipe
nothing recorded
Effective from June 30th 2026 - XSUAA Deprecation of GET Method for OAuth Token Retrieval
SAP Community, Yogananda
nothing recorded
From XSUAA to AMS: Architecting S4HANA CAP Extensions with Policy-Based Authorization
SAP Community, Avinash VaidyaThe reasoningA recipeRunnable code
nothing recorded
How to Restrict CRUD Operations in SAP CAPM Using @Capabilities, @readonly and Test APIs with .http
SAP Community, DeepaRaghoThe reasoningA recipeRunnable code
nothing recorded
Dynamic authorisation with user attributes in SAP CAP and AMS
SAP Community, pedro_iranzoThe reasoningA recipeRunnable code
nothing recorded
Agentic AI on BTP: a Single Agent with LangGraph
SAP Community, Wouter Lemaire
nothing recorded
SAP BTP XSUAA Security Configuration Comparison: Attribute-Based vs. Authority-Based Approaches
SAP Community, rajeshkputumbakaThe reasoningRunnable code
nothing recorded
Securing CAP Applications with SAP Cloud Identity Services and AMS
SAP Community, gopalanandThe reasoningRunnable code
nothing recorded
Joule Studioがリリースされたので早速CAPアプリを自然言語で操作するカスタムスキルを構築してみた
SAP Community, takayuki_tanaka
nothing recorded
CAP-JAVA implementation for Authorization Management Service (AMS)
SAP Community, Harvey_Yao
nothing recorded
Enabling Authorization Policies in SAP Cloud Identity Services - IAS with AMS/CAP
SAP Community, YoganandaThe reasoningA recipe
Core changed
CAP for nodejs安全的暴露接口练习
SAP Community, ArthurYang
nothing recorded
XSUAA Local Testing
SAP Community, ManasaManuThe reasoningA recipeRunnable code
Core changed
SAP CAP(Cloud Application Programming)开发框架概述
SAP Community, ArthurYang
nothing recorded
XSUAA Based Authentication - Using Managed Approuter
SAP Community, rahul_rajagopalThe reasoningA recipe
Core changed
[Part - 1] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Ajit Kumar Panda
nothing recorded
SAP Job Scheduling Service + Cloud Application Programming Model application (CAP) + SAP Authorization and Trust Management Service (XSUAA)
SAP Community, former_member412792The reasoning
nothing recorded
Useful CAP CDS and Fiori Commands to Accelerate Development and Deployment
SAP Community, TiaXu
nothing recorded
Qualtrics integration with domain based authorization in CAP project on HANA cloud
SAP Community, former_member69893The reasoningRunnable code
Core changed
An approach to secure multiple integrated SAP CAP java applications with a common XSUAA service instance
SAP Community, sreanik_dhanyakumar2The reasoning
nothing recorded
SAP Business Technology Platform: Authorization and Trust Management Service
SAP Community, SekhuteTK
nothing recorded
How to get authenticated user information with CAP in three different ways – Using the XSUAA API
SAP Community, ale_biagiThe reasoning
nothing recorded
Why developers should care about credential-types for xsuaa?
SAP Community, former_member2839The reasoningA recipeRunnable code
Core changed
Insights of Cloud SDK, CAP, XSUAA, SSH and other BTP topics from 2021
SAP Community, dr_vupThe reasoning
nothing recorded
Understanding security approaches in SAP CAP using XSUAA in node.js flavor and MTA.
SAP Community, balbinosoaresThe reasoningA recipeRunnable code
Core changed
How SAP secures enterprise AI agents with identity propagation
SAP TechEd — session catalogue, Gunnar KoscheThe reasoning
nothing recorded

Details

Graph3 edges
POINTS OUT →
explainsAuthorizationcapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitybtp-security-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via SAP Community · btp-security-tag.
For your agent
Ref
content:securing-sap-cap-applications-xsuaa-roles-and-authorization-best-practices
JSON
/content/securing-sap-cap-applications-xsuaa-roles-and-authorization-best-practices.json
MCP
Connecting an agent