Introduction to this Unit
In Unit 5 Defining Payroll Control Center Roles, you learned how to create custom roles by copying roles from the standard PCC delivery with the transaction PFCG. In this unit, you will get acquainted with the user's authorization to work with PCC. An authorization enables you to execute certain functions in the SAP system. Every authorization relates to an authorization object and defines a value or values for each authorization field contained in the authorization object. Authorizations are grouped into profiles that are entered in the user master record. If you use the Profile Generator to define your authorizations, it automatically selects the authorization objects checked for your selected transactions. As a rule, security administrators are responsible for creating users and roles and assigning roles to users. However, knowing the details of the check made for each authorization object is still important. Below is an overview of the most important transactions and authorization objects checked for various PCC related activities and roles.
User and Roles
To log on to the SAP system, a user must have a user master record and a corresponding password. In the user master record, a user menu and the related authorization profiles are assigned to the user. This is done by assigning the user to one or several roles.
The following list defines the terms that are relevant to user master records:
- Role is a collection of activities that allow a user to participate in one or more business scenarios in the organization. The assignment of users to roles safeguards the integrity of business data.
- User menus provide access to the transactions, reports, or web-based applications contained in the roles. A user menu should have only the functions a user typically performs at work.
- An authorization profile is generated for the activities contained in the role. This authorization profile defines the boundaries where users may perform actions in the SAP system.
- The role assignment authorizes what the assigned users can access in the Authorization Profile.

The Most Important PCC Authorization Objects
The table, Authorization Objects. in the image shows several authorization objects you can use to define authorizations for PCC. Display these authorization objects using transaction SU21 (HR object class) in the SAP system.
Authorization objects enable complex checks of an authorization, which allow a user to carry out an action. An authorization object groups up to 10 authorization fields checked in an AND relationship. For a successful authorization, all field values of the authorization object must be maintained by the individual responsible for the configuration of authorizations. Authorization object fields are not considered input fields on a screen. Instead, they are system elements, such as infotypes, which must be protected.
You can learn fundamental knowledge of the authorization concept for SAP S/4HANA and SAP Business Suit in the course ADM940 and HCM specific aspects of authorization in the course HR940.
The table Authorization Objects shows several authorization objects you can use to define authorizations for PCC. Display these authorization objects using transaction SU21 (HR object class) in the SAP system

Transaction SU21
The image shows the screen for Transaction SU21.

Creating and Updating New Roles
Next, let’s look at the full path (5 steps) for creating new roles.

Create Role Menu: Add Transaction
Start transaction PFCG. Provide a name for new roles (Do not enter a name that begins with a namespace prefix or the prefix SAP). Choose the Create Single Role / Change button. Enter a description the function of the role.
On the Menu tab, assign transactions, reports, programs, Internet links, and intranet links to the role. The system automatically uses the role menu structure activities to create the authorizations.
When creating new roles, we usually provide different transactions for the role. To do this, we just need to add the transactions to the menu. The system will automatically collect all necessary authorization objects, so the consultant only needs to collect specific information for the transaction. Different organizations are required for distinct countries.
Steps:
- Choose the Menu tab
- Choose the Transaction button
- Provide the transaction code on the next screen
- Choose the Assign Transaction button
- Save your entry

Create Role Menu: Add a New Link (UI5 Application Link)
We need to provide authorization for our front-end application. For example, "My Process" will need to define the code for the application. This image below shows how it’s possible to get a correct name for any application, such as call transaction, find correct service text, and copy the link to the role.
Steps:
- Start transaction SICF
- Find the required service
- Choose the option Test Service from the Context Menu

Next, you’ll copy the link to the role.
Steps:
- On the Menu tab, choose the Insert Node option
- Choose Other from the Picklist
- Then web address or file
- Provide the UI5 Application link and text on the pop-up window
- Choose the Apply (Entry) button
- Save your entries

Create Role Menu: Provide the OData Service Access
Next, you’re ready to provide the OData service access.
- Choose the Insert Node option.
- Choose Authorization Default. Services related to Authorization Default will not appear in the end user's menu. It must provide authorization to the back-end OData services.
- Choose the Hash value for the TADIR object (HT TADIR service) as SRV_TYPE and IWSV SAP Gateway Business Suite Enablement as Object Type on the pop-up window. Choose Hash value for the TADIR object (HT TADIR service) as SRV_TYPE.
- Enter mask PYC* and choose the required service name from the picklist.
- Choose the Copy button
- Choose the Copy button one more time
- Save your entries

Next, you’ll repeat the same sequence of steps for Object Type IWSG SAP Gateway Service Group Metadata. We need to take the same steps and provide information about another object.

Access the OData Services for Manage Configuration App
You must provide links that correspond to the services. Links are dependent on the object types and services. The image shows the objects that have to be assigned to the roles and users for whom you’re planning to grant configuration tool access.

Role Menu with Access to All OData Services in Manage Configuration
This is what the menu looks like for the role with authorization for manage configuration application.

Role Menu with Access to Specific OData Service in the Manage Configuration App
Next, let’s look at how to access specific OData services in Manage Configuration.

Configure Authorization
Now, it’s time to provide authorization. The system will collect all necessary authorization objects, so you just need to provide some attributes for the authorization objects. The image below shows how to go to the authorization profile.
Steps:
- Choose the Authorizations tab
- Choose theChange Authorization Data button

Check and Add the Required Authorization
The system automatically assigns the required authorization objects to the authorization profile. Check and add the required authorization and save your entries.
You need to add some authorization objects manually and then provide some attributes for these authorization objects. Add Authorization Object P_PYT_CFG PCC: Authorization for Configuration Application manually to the Role Authorization Profile. Provide the required values for the authorization object fields.

Generate Authorization
Choose Generate to generate an authorization profile for the authorizations. You are prompted for an authorization profile name. The system proposes a valid name in the customer name space.
Leave the tree display after the profile generation. If you change the menu selection and call the authorization tree display again, the authorizations for the new activities are added to the existing authorizations. Traffic lights may be switched to yellow because new, incomplete authorizations appear in the tree display. Assign values manually or delete them. Delete an authorization by deactivating it first and then deleting it.

Assign and Compare User
On the User tab, assign users to the role. The user menu appears when the assigned user logs on to the system. The system automatically enters the generated authorization profiles in the user master record of this user, when you compare the user master. Assign the user to this role and transfer authorization profile to this user. Then just need to test this role.
