Sub topic 11
Assigning business roles to business users
This chapter covers how a business role reaches a business user. It assumes you know what a business user is, what a business role contains, and how PFCG roles generate authorization profiles. If those are unclear, review the earlier chapters first.
What assignment does
A business user is a person's identity in the system. A business role is the bundle of catalogs and authorizations that fits a job function. Assignment links the two. After you assign a role, the user gets two things:
- Launchpad content: the apps from the role's business catalogs, arranged in the spaces and pages of the role.
- Data authorizations: the authorization values from the PFCG role behind the business role.
Both parts must work. A user who has the tile but no authorization sees an error message in the app. A user who has the authorization but no catalog never sees the app.
Assigning a role
In the Fiori launchpad, the usual tool is the Maintain Business Users app. The steps are:
- Open Maintain Business Users and search for the user.
- Open the user and go to the business roles section.
- Add one or more business roles.
- Set a validity period for each assignment if the access is temporary.
- Save.
You can also assign a user from the business role side. The Maintain Business Roles app has a users section for this. Use that route when you want to add many users to one role.
The classic route is transaction PFCG or SU01. There you assign the PFCG role on the roles tab of the user. The role must be generated first, otherwise it has no profile to give.
Validity and the user comparison
Each assignment has a "valid from" and "valid to" date. The date range controls when the role counts. This is useful for holiday cover, project work, and temporary elevated access.
If you assign a PFCG role in SU01 or PFCG, you may also see a user comparison step. It copies the generated profile into the user master record. Run it after you change the role's authorization data. The system can do this on a schedule with report PFUD. Without the comparison, a user can keep outdated profile data even though the role has changed.
Combining roles and limiting them
A user can have many roles. Authorizations from all roles add up. The system uses a union of the values. If one role allows company code 1000 and another allows 2000, the user may work in both.
This has two consequences:
- You cannot remove an authorization by assigning a second role. You can only remove the role that grants it.
- Restrictions in one role do not narrow what another role grants. A role that restricts to company code 1000 is overridden by a role with a full wildcard on the same field.
Organizational restrictions belong in the role design, as covered in the chapter on restrictions. At assignment time, make sure a user does not receive a broader role next to a restricted one.
Common assignment errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Tile is missing | The catalog is not in the role, or the assignment has expired | Check the role's catalogs and the validity dates |
| App opens but data is denied | The PFCG role is not generated, or the user comparison did not run | Generate the role, then run the user comparison |
| Change has no effect | The user is still logged on | Log off and on again |
| User has too much access | Another role adds broad values | Review all roles assigned to the user |
Exercise
A user has two roles. Role A grants display access to company code 1000. Role B grants display access to company code 2000. Which company codes can the user display, and how do you take away access to 2000?
Show answer
The user can display both 1000 and 2000, because authorizations from all assigned roles combine. To remove access to 2000, remove the assignment of Role B, or change Role B so it no longer grants 2000. Assigning another role cannot subtract the value.
Exercise
You assigned a new business role to a user, but the user still cannot see the new tile. Name two checks you would make first.
Show answer
Check that the user logged off and on again after the assignment, and check that the assignment's validity period includes today. You can also check that the role contains the right business catalog.