Skip to content
Learn · SAP access risk

SAP composite roles: single vs composite roles in PFCG

How composite roles bundle single and derived roles in PFCG, when to use them, and how SoD conflicts hide inside them.

Last reviewed · Rinexis SAP security team

Definition

A composite role in SAP is a PFCG role that groups several single or derived roles for assignment in one step. It has no authorization data or profile of its own: a user assigned a composite role receives the profiles of the single roles inside it, and their access is the sum of those roles.

What a composite role is (and is not)

PFCG roles introduces the three role types. A composite role is the container type. In PFCG it has a Roles tab instead of an Authorizations tab: you list the single and derived roles it contains, and that list is stored in table AGR_AGRS (composite role in AGR_NAME, contained role in CHILD_AGR).

  • No authorizations: a composite role generates no profile. Every authorization a user gets through it comes from a contained single role.
  • No nesting: a composite role cannot contain another composite role.
  • Shared building blocks: the same single role can sit in many composite roles. Changing that single role changes the access of every composite that contains it.
  • Separate users list: users are assigned to the composite role, and PFCG assigns the contained single roles to them indirectly.

User assignment and user comparison

When a user is assigned a composite role, PFCG writes the assignment for the composite and, indirectly, for each contained single role into AGR_USERS. In SU01 the Roles tab shows the single roles as inherited from the composite. The profiles of those single roles reach the user master only after user comparison.

In AGR_USERS, indirect assignments are flagged (field COL_FLAG), which is how reports tell a direct single-role assignment from one inherited through a composite. Keep this in mind when extracting user access: counting only direct assignments misses most of what composite-based users hold.

  1. Add or remove a single role in the composite and save.
  2. Run user comparison on the composite role, or for many roles at once with PFUD. This adds or removes the indirect single-role assignments and their profiles.
  3. If user comparison is skipped, users keep a single role that was removed from the composite, or never receive one that was added.

Validity dates are set on the composite assignment and passed to the indirect single-role assignments. Schedule PFCG_TIME_DEPENDENCY so expired composite assignments actually remove access.

Single vs composite role assignment

Trade-offs between assigning single roles directly and assigning composite roles.
Single roles assigned directlyComposite roles
ProvisioningMany assignments per user; easy to miss oneOne assignment per job
PrecisionExact per user; good for exceptionsEveryone in the job gets the same bundle
Role countFewer roles, more assignmentsExtra layer of roles to maintain
Access reviewsReviewers see technical role namesReviewers approve a job-level role they recognise
SoD visibilityConflicts appear between roles at user levelConflicts can be designed into the composite itself
Drift riskAd-hoc additions accumulate on usersAd-hoc additions accumulate in composites

Most organizations end up with both: composite roles for standard jobs, plus a small number of single roles assigned directly for genuine exceptions. The aim is that a user's access can be explained by their job composite, with direct assignments documented and reviewed in user access reviews.

Business roles vs technical roles

Technical roles are what PFCG holds: single, derived and composite roles. A business role is the job as the business describes it, such as accounts payable clerk for one legal entity. A composite role is the native SAP way to represent a business role inside one system.

In SAP GRC Access Control, Business Role Management (BRM) can define a business role that maps to technical roles in several systems and is provisioned as one request. Whether you use GRC business roles or PFCG composites, the principle is the same: business owners approve the business role, and security owns the technical roles underneath.

How SoD conflicts hide in composites

Each single role can be free of SoD conflicts and the composite can still conflict. If one single role maintains vendors and another runs payments, the composite combines them, and every user assigned it holds the create vendor and pay vendor risk. Because the composite is assigned as one unit, this behaves like an intra-role conflict: it is inherited by every user of the composite.

  • Run role-level SoD analysis on composite roles as well as single roles. Analysis on single roles alone will not show combination conflicts.
  • Check before adding a single role to an existing composite, not after users have been compared.
  • Remember that authorizations from different single roles add up. A transaction from one role can be satisfied by authorization values from another, so a composite can grant more than any of its single roles does on its own.
  • Mixing derived roles for different org values in one composite (vendor maintenance in company code 1000, payments in 2000) may or may not be a real conflict; it depends on whether your ruleset considers org values.

Reviewing composites and naming

To review composites, start from AGR_AGRS to list each composite and its contents, then join to AGR_USERS for users and to AGR_1251 for the authorizations of the contained roles. SUIM role reports give the same picture interactively. Look for composites with no users, single roles that appear in no composite and are assigned directly, and composites whose contents no longer match their description.

Name composites so they read as jobs: a type prefix that distinguishes composite from single and derived roles, the process area, the job and, where relevant, the org scope. If a composite holds derived roles for one company code, put that company code in its name so a reviewer can spot a contained role with a different org value.

Frequently asked questions

What is the difference between a single role and a composite role in SAP?

A single role holds a menu and its own authorization data and generates a profile. A composite role only groups single or derived roles for assignment; it has no authorization data or profile, so all the access it gives comes from the single roles it contains.

Can a composite role contain another composite role?

No. A composite role can contain only single roles and derived roles. To give a user the content of two composites, assign both composites or build a new composite from the underlying single roles.

Which table lists the roles in a composite role?

Table AGR_AGRS stores composite role contents. Field AGR_NAME holds the composite role and field CHILD_AGR holds each single or derived role it contains. Join it to AGR_USERS to see which users receive those roles.

Why does a user still have access after a role was removed from a composite?

Removing a single role from a composite role does not change user master records until user comparison runs. Run the comparison on the composite role or with PFUD, and schedule PFCG_TIME_DEPENDENCY so assignments stay in line with role contents.

Can a composite role have an SoD conflict if its single roles are clean?

Yes. Each single role can be free of conflicts while two of them together cover both sides of a risk, such as vendor maintenance and payments. Every user assigned the composite then holds the conflict, so composites need their own role-level SoD analysis.

How Rinexis handles this

Sodly matches the transactions and authorizations in users' and roles' access against your ruleset and reports conflicts by user and by role, rated Critical to Low and grouped by process area, with transaction-usage counts for each conflict. That makes combination conflicts visible whether they come from a composite or from separate assignments.

Where a conflict is designed into a role, Sodly flags it by role so it can be split and no role carries both sides of the risk, and our consultants rebuild composite and single role structures in role redesign and SoD remediation engagements.

See your own SAP access risk, not a textbook example

Talk to an SAP security specialist about your roles, ruleset and audit timeline, or explore the platform modules that analyse and fix access risk.