Practice
Resources
Contests
Online IDE
New
Free Mock
Scaler Events New
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
Scaler
Explore Offerings by SCALER
Events
Checkout Scaler Academy Events
New

Before you go!

Take this "SAP Security Interview Questions" interview guide with you

SAP Security Interview Questions

Last updated on Feb 04, 2022

Download PDF


Your requested download is ready!
Click here to download.

SAP (Systems, Applications, and Products in Data Processing) is an enterprise management system that assists organizations in managing the financial, logistical, and human resources aspects of their business. Such systems need to be secure since organizations use them to store sensitive information about their finances, customers, and employees. SAP Security comes into play in this scenario. Leading multinational corporations around the world use SAP solutions to manage their operations and workflow. As SAP security gains in popularity, SAP security professionals are also in high demand. Due to a severe shortage of skilled SAP security professionals in the industry, there are many job opportunities in this area.

Considering a career in SAP security? To help you prepare, we provide you with some of the most frequently asked SAP security interview questions. First, let's understand what SAP Security entails... 

What is SAP Security? 

The SAP system is often used by organizations to store their most critical assets, including intellectual property. In order to protect this data against unauthorized access originating from both internal and external threats, it must be protected using SAP Security. System Applications and Products (SAP) Security is a method for protecting SAP Systems from unauthorized access within a distributed environment - whether users are accessing the system locally or remotely. An SAP security mechanism should be in place to prevent any risks to the SAP system. SAP security provides access to data where it is needed and prevents access where it is not within the SAP system.

SAP security is all about giving business users the right access and permissions based on their roles and authority. In order to ensure that your SAP system remains protected and works properly, it is crucial to have a good internal security and access process in place. The SAP Security solution covers diverse authentication methods, network and communication security, database security, as well as protecting standard users and various other practices that should be followed as part of maintaining your SAP environment.

Crack your next tech interview with confidence!
Take a free mock interview, get instant⚡️ feedback and recommendation💡
Events | Powered By

SAP Security Interview Questions for Freshers

1. Can you explain what a ‘user compare’ does in SAP security?

In cases where a role is used to generate authorization profiles, the generated profile is not entered into the user master record until the user master record is compared. It can be automated by scheduling the report FCG_TIME_DEPENDENCY every day.

2. Write different layers of security in SAP.

Different layers of security in SAP are as follows:

  • Authentication: It verifies the user and only authorized users should be permitted access to the SAP system.
  • Authorization: The SAP system can authorize users only to access SAP based on the roles and profiles they have been assigned.
  • Integrity: It is vital to ensure the integrity (validity, accuracy, and consistency) of data at all times. 
  • Privacy: It keeps data safe from unauthorized access.
  • Obligation: Securing the company's liability and legal obligations towards stakeholders and shareholders, as well as validating them.

3. What are different SAP Security T-codes?

In SAP, a transaction code (T Code) is basically a four-digit shortcut key that can be used to access a specific function or any running program in the SAP application. Using a transaction code, you can access desired functions directly within the SAP system. In the SAP system, there are more than 10,000 T-codes used for configuration, end-user activities, implementation, reporting, updating, security, etc. Below is a list of some SAP Security T-codes:

SAP T-code Description
PFUD Compare the User Master in Dialog.
SCC8 The exchange of data occurs at the operating system level.
PFCG Role maintenance with the profile generator.
SE43 Display and maintain the Area Menus.
ST01 System Trace.
SU01 User creation and maintenance.
SU02 Maintain authorization profile.
SU03 Maintain authorization.
SU3 Sets the address and default parameters.
SU10 Maintenance for mass users.
SU25 For filling of customer table USOBT_C and USOBX_C with SAP default values.
SUIM User information system.
SM01 To lock the transaction from execution.
SM12 Display and Delete Locks.
SM20 View Security Audit log.
EWZ5 Lock users.
RZ10 Profile configuration.
RZ11 Maintain the profile parameters.
You can download a PDF version of Sap Security Interview Questions.

Download PDF


Your requested download is ready!
Click here to download.

4. Describe the different types of SAP System users.

In SAP systems, when an administrator creates a new user ID, he has to specify the type of user this user ID should be assigned to. Users in a system can be categorized according to their purposes. This allows different security policies to be specified for different types of users. A security policy may, for example, specify that a human user (end-user) who executes tasks interactively needs to change their passwords regularly, whereas this requirement does not apply to users who are running jobs in the background. Following are some types of users in SAP:

  • System user: Users with this user type can perform certain system activities such as background processing, ALE (Application Link Enabling), workflows, etc. The system user does not allow interactive access to the system. When a user has the service user type, the system won't check for expired/initial passwords, only a user administrator can change the password, and multiple logins are allowed.
  • Dialogue user: Dialogue users represent human users, also called end-users. This user type is needed for individual, interactive sessions in the SAP system. When a user has dialogue user type, the system checks their expiring or initial password, enables them to change their passwords, and checks for multiple logins.
  • Service user: Service user types generally represent a larger user community and allow. This user type facilitates guest access, or the ability to connect to remote systems with certain rights. When a user has the service user type, the system won't check for expired/initial passwords, only a user administrator can change the password, and multiple logins are allowed.
  • Communication user: It enables dialogue-free interaction or communication between systems. Dialogue logon cannot be done with this type of user.
  • Reference user: Rather than assigning roles individually to each user, a reference user is created to hold a selection of roles that are to be assigned to a larger group of users. If you need to create a large number of users in your SAP system with the same authorization assigned, you can use this method.

5. How many types of users are there for background jobs? Is there a way to troubleshoot problems that a background user faces?

The user types for background jobs are as follows:

  • System user: Users with this user type can perform certain system activities such as background processing,  ALE (Application Link Enabling), workflows, etc. 
  • Communication user: It enables dialog-free interaction or communication between systems. Dialog logon cannot be done with this type of user.

We can schedule background jobs using the SM36 T-code, view and monitor background jobs running in the system using SM37 T-code, and troubleshoot problems for background users using ST01 T-code. 

6. How will you check table logs and what T-codes will you use?

The first thing we need to do is make sure that logging is enabled or not for this table, and we can check this by using the T-code SE13. Then, if the table loggings are enabled, we can view the history of the table (table logs) by using T-code SCU3.

7. Explain the concept of SAP Roles and Authorization.

In SAP, roles and authorization are the mechanisms that allow users to execute transactions (execute programs) in a secure way. Each role in SAP requires authorization in order to execute a function. There are several different types of standard roles in SAP for different modules and scenarios. In addition, user-defined roles can be created based on the project scenario. The SAP system grants access to users based on roles stored in their user master. PFCG is the T-code for maintaining roles and authorization data.

8. Write different types of roles in SAP security.

In SAP, there are several types of roles as follows:

  • Single Role: Single roles typically contain all authorization objects as well as field values (both organizational and non-organizational) required to execute the transactions that the role contains. The term "Single Role" is commonly used to refer to a job/position-based role design. In such cases, the single role includes all authorizations required for a user's position or job.
  • Derived Role: Roles can also be derived from single roles. In derived roles, there is a parent or master role and more child roles that differ only in their organizational values from each other. 
  • Composite Role: You can group multiple single roles together to make a composite role. By assigning only the composite role, you can indirectly assign multiple single roles to a user.

9. Is there a way to add a missing authorization?

SU53 is the best T-code to find the authorizations that are missing. There may be times that this T-code is required for SAP GUI troubleshooting. We can then insert those missing authorizations with the T-code PFCG. PFCG is the T-code for maintaining roles and authorization data.

10. What is SOD (Segregation of Duties) in SAP Security?

Segregation of Duties (SOD) refers to segregating duties or roles between different users. SOD involves separating individuals who handle different steps of business transactions in order to reduce fraud and errors.  The SAP SOD is an essential internal control system meant to minimize the risk of errors and irregularities, identify problems and ensure the onset of remedial action. All of this can be achieved by making sure that no single person controls all phases of the transaction.

Example: Let's say that the process of disbursing the money is preceded by a series of steps. As a first step, a business manager generally drafts a purchase order (PO) that outlines how a vendor will be paid for the product or service. That vendor must be approved by the purchasing department before payment can be made. A senior manager will usually approve the purchase order. An invoice for products and services must then be issued by the vendor. Prior to signing a check, a person from the accounts payable department needs to approve the invoice. The following diagram illustrates the basic procurement process.

In the diagram, there are four people with different responsibilities. In this workflow, all four people act as checks on each other.

Imagine if one person could carry out all four steps of this process, then he or she would be capable of requesting a purchase, approving it and signing the check. It has unfortunately been observed that employees can misuse this concentration of authority to commit fraud. This emphasizes the importance of segregating duties.

11. How will you create a user group in SAP?

The following steps explain how to create a user group in SAP:

  • STEP1: In SAP Easy Access Menu, enter the SUGR T-code and execute it. SUGR is the SAP T-code for maintaining user groups.
  • STEP2: You will see a new screen. Fill in the text box with the name of the new user group. 
  • STEP3: Then click on the Create button.
  • STEP4: Add a description and click Save.
  • STEP5: A new user group will be created in SAP.

12. Explain the use of role templates.

As part of SAP AIF (Application Interface Framework), predefined template roles are available. These role templates can be used to define or customize roles based on specific requirements. Each role template comes with a set of authorizations that typical SAP AIF users would require. You can change a role template in three ways:

  • Use them as they are delivered in SAP
  • Modify them according to your needs using the PFCG T-code
  • Build them from scratch

Below are some examples of role templates offered by SAP AIF 4.0:

  • SAP_AIF_ADMIN: AIF Administrator
  • SAP_AIF_ALL: AIF All Authorizations
  • SAP_AIF_ARCHITECT: AIF Architect
  • SAP_AIF_AUDITOR: AIF Auditor
  • SAP_AIF_POWER_USER: AIF Power User
  • SAP_AIF_USER: AIF Business User

13. State difference between role and profile.

A role is essentially a combination of transactions and authorizations stored in a profile. Profiles associated with a role can vary in number depending on the number of transactions and authorizations that are contained within the role. As soon as you generate a role, it automatically creates a profile. 

14. Mention what is the maximum number of profiles in a role and a maximum number of objects in a role?

A role can have a maximum of 312 profiles and 170 objects.

15. Which reports or programs are useful for regenerating SAP_All profiles?

Report RSUSR406 or T-code SU21 can be used to manually regenerate the SAP_ALL profile. In this case, the SAP_ALL profile is only generated in the client where the report is executed. You can also generate SAP_ALL profiles using the report AGR_REGENERATE_SAP_ALL. In this case, the SAP_ALL profile is generated in all the clients.

SAP Security Interview Questions for Experienced

16. Differentiate between USOBT_C and USOBX_C.

USOBX_C and USOBT_C are customer-specific tables, and the C in their names indicates that these tables contain customer-specific values that are maintained/changed using the T-code SU24.  Differences between USOBT_C and USOBX_C are as follows: 

USOBX_C USOBT_C
This table specifies which authorization checks are to be performed and which are not, i.e., whether the field “check indicator” is set to "check" or to "Do not check". USOBT_C contains authorization objects whose Proposal value is Yes in SU24.
This table also defines the authorization checks that are maintained in the profile generator. It contains authorization values for the authorization objects that are defined to be maintained in the profile generator. 

17. Explain authorization class and authorization object.

  • Authorization Object: An authorization object is a group of authorization fields that regulates a particular activity. While authorization relates to a particular action or activity, the authorization field relates to security administrators for configuring or defining specific parameters/values in that particular action. 
  • Authorization Class: Authorization classes, on the other hand, are groups of Authorization objects. These classes can contain one or more authorization objects.

18. What t-code is used to maintain Authorization Object and profile?

T-code used to maintain Authorization Object and profile are as follows:

  • SU21: This is used to maintain authorization objects in SAP.
  • SU02: This is used to maintain authorization profiles in SAP.

19. Which authorization objects are needed to create and maintain user records?

In order to create and maintain a user record, you need the following authorization objects:

  • S_USER_GRP: Assign user groups.
  • S_USER_PRO: Assign authorization profile.
  • S_USER_AUT: Create and maintain authorizations.

20. What does User buffer mean? Which parameter controls the number of entries in the user buffer?

An SAP system automatically creates a user buffer when a user signs on. This buffer includes all authorizations for that user. Each user has their own buffer, which they can display using the T-code SU56. The tool is only for monitoring purposes, and no further action can be taken. The following profile parameter controls the number of entries in the user buffer: “Auth/auth_number_in_userbuffer”.

21. Which T-codes can be used to display user buffers, and delete old security audit logs?

T-code used to display user buffers, and delete old security audit logs are as follows:

  • SM18: Delete old security audit logs/ Reorganize Security audit log in SAP.
  • SU56: Monitor the number of objects buffered from individual user authorization roles and profiles.

22. What is the procedure for deleting multiple roles from the QA (Quality Assurance), DEV (Development), and Production systems?

In order to delete multiple roles from QA, DEV, and Production systems, you must follow the steps below:

  • Put the roles to be removed in a transport (in development).
  • Delete the roles.
  • Push the transport to the QA and production departments.

23. What are the main tabs available in PFCG (Perfectly Functionally Co-coordinating Group)?

In the PFCG, there are many important and essential tabs, including the following:

  • Description: Used to describe changes made, such as those made to roles, authorization objects, or other T-codes (addition or removal).
  • Menu: Design user menus such as adding T-codes.
  • Authorization: Used for maintaining authorization profiles and authorization data.
  • User: Used to adjust user master records and assign users to the role.

24. Describe the steps one needs to take before running the Run system trace.

There are a few things that need to be done before one wants to execute the Run system trace. If one is going to trace the CPIC or the user ID prior to executing the Run system then one has to make sure that the said ID is given to someone that is either SAP_new or SAP_all.

This has to be done because it ensures that one is able to execute the work without any kind of checking failure by authorization.

25. In which table are illegal passwords stored?

The USR40 table is a standard authentication and SSO (Single Sign-On) Transparent Table in SAP Basis, which stores data about illegal passwords. It is used to gather illegal passwords and store them in various arrangements and patterns of words that can be implemented at the moment of creating the passwords. 

26. Explain PFCG_Time_Dependency.

The PFCG_TIME_DEPENDENCY report is an Executable ABAP (Advanced Business Application Programming) Report within your SAP system. PFCG_TIME_DEPENDENCY is a report used for comparing user masters. In addition, it deletes or removes expired profiles from the user master record. This report can also be directly executed using the PFUD T-code.

27. Apparently, someone deleted users from our system, and I would like to know who did so. Is there a table where this is recorded or logged?

This information can be obtained by debugging the system or by using the RSUSR100 report. This report can be used to determine all changes made to the user (user change history).

28. What is Profile Version?

Profiles contain a set of rights and restrictions associated with a specific user or group.  User profiles specify what actions (like viewing, creating, and editing) a user is allowed to perform on various resources, like sourcing documents or master data.

Changing and saving a profile does not overwrite the old status in the database. ​Instead, a new version is created with the updated values. SAP assigns a unique number to each profile version. Create a new profile, for example, and it will have a version number of 1. After that, additional profiles will have sequential version numbers.

29. Would it be possible to mass delete roles without deleting the new roles in SAP?

SAP provides a report i.e., (AGR_DELETE_ALL_ACTIVITY_GROUPS), which you can copy, then remove the system type check, and then execute/run. For mass deletion of roles without deleting the new roles in SAP, simply enter the roles that you wish to delete in a transport (a package used for transferring data between SAP installations), run/execute the delete program or either delete manually, then release the transport and finally import the roles into all client systems. ​As soon as your transport, the role is deleted from all client systems.

It is necessary to tweak/debug & replace the code in AGR_DELETE_ALL_ACTIVITY_GROUPS to ensure it is deleting only SAP delivered roles. Getting past that little bit makes it work well.

30. What are the values for user lock?

To determine whether the user is locked or not, we use the USR02 table. Below is a table showing the 6 types of user lock values:

User Status Reason
0 Not locked.
16 Mystery values.
32 Locked by CUA central administrator (User Admin).
64 Locked by System Administrator.
128 Locked after too many failed logon or incorrect logon attempts.
192 A combination of both is locked by the system administrator and locked after too many failed logins (192 = 64+128).

Conclusion:

The SAP Security solution allows you to monitor and regulate access to your company's systems and data both internally and externally. Globally, leading multinational businesses rely on SAP solutions to manage their operations and workflow. Consequently, SAP Security is one of the most rewarding careers in the technology world today, and SAP Security developers are in high demand. Therefore, you have an excellent chance of moving ahead as an SAP Security developer.

Are you ready to ace your SAP Security interview? 

Useful Resources:

Frequently Asked Questions

31. What is SAP security role?

Security roles are defined based on the positions/jobs of users. A role is essentially a combination of transactions and authorizations stored in a profile.

32. Is SAP security easy to learn?

Learning something won't be difficult as long as we're interested in it. By acquiring SAP security skills, you gain exposure to all business functions that involve SAP security configuration. It only takes a positive attitude, a proactive approach, and an analytical mind to learn it.

33. What is SAP Basis and Security?

SAP Basis is System Administrator and SAP security is User administration. SAP Basis handles System Administration (system installation, system performance, OS/SB administration etc.). SAP Security handles User administration (granting access to a limited set of data that users can access within the SAP system).

34. What is SAP security and GRC?

SAP GRC generally stands for Systems Applications and Products in Data Processing Governance, Risk, and Compliance. It is a powerful SAP security tool that allows companies to ensure that their data is secured and authorized.

35. Is SAP security a good career?

Leading multinational corporations around the world use SAP solutions to manage their operations and workflow. Therefore, SAP Security is among the most rewarding careers today, and SAP Security developers are in high demand. SAP security is undoubtedly one of the best long-term career options to choose if you are not afraid of challenges.

36. What is the salary of an SAP Security Analyst in India?

Depending on the level of experience and skills, the average salary for an SAP Security Analyst ranges between ₹ 4 LPA - ₹ 15 LPA.

SAP Security MCQ Questions

1.

Which t-code will be used to lock all users at the same time at SAP security?

2.

Which of the following is not a layer of security in SAP?

3.

SAP stands for ___.

4.

Which T-code will be used for user creation and maintenance?

5.

Which of the following are types of SAS System users?

6.

Which of the following is not a value for user lock?

7.

In PFCG, which are the main tabs available?

8.

What types of users are there for background jobs?

9.

PFCG stands for ___.

10.

Which of the following authorization objects is used to assign a user group?

Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler
Sat transparent 640a34d454880bf68e3bfdf33f2389f2214043f59ad18b4c7f7b114e834fb257.svg

Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Personalised feedback report with solutions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Real life Interview Questions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Identify exact topics to improve

Your feedback is important to help us improve.
Free Mock Assessment
Fill up the details for personalised experience.
All fields are mandatory
Current Employer *
Enter company name *
Graduation Year *
Select an option *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
Phone Number *
OTP will be sent to this number for verification
+91 *
+91
Change Number
Phone Number *
OTP will be sent to this number for verification
+91 *
+91
Change Number
Graduation Year *
Graduation Year *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
*Enter the expected year of graduation if you're student
Current Employer *
Company Name *
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test