SAP Security Interview Questions

SAP Security Interview Questions and Answers

Q.How to create users?

Answer: Execute transaction SU01 and fill in all the field. When creating a new user, you must enter an initial password for that user on the Logon data tab. All other data is optional.

Q.Tell me frequent used SAP Security T-codes

Q.Frequently used security T-codes

Answer: SU01 Create/ Change User SU01 Create/ Change User

PFCG Maintain Roles

SU10 Mass Changes

SU01D Display User

SUIM Reports

ST01 Trace

SU53 Authorization analysis

Q.What is the difference between USOBX_C and USOBT_C?

Answer:  The table USOBX_C defines which authorization checks are to be performed within a transaction and which not (despite authority-check command programmed ). This table also determines which authorization checks are maintained in the Profile Generator. The table USOBT_C defines for each transaction and for each authorization object which default values an authorization created from the authorization object should have in the Profile Generator.

Q.Authorization are required to create and maintain user master records?

Answer: The following authorization objects are required to create and maintain user master records:

S_USER_GRP: User Master Maintenance: Assign user groups

S_USER_PRO: User Master Maintenance: Assign authorization profile

S_USER_AUT: User Master Maintenance: Create and maintain authorizations

Q.List R/3 User Types

Answer: Dialog users are used for individual user. Check for expired/initial passwords Possible to change your own password. Check for multiple dialog logon

A Service user – Only user administrators can change the password. No check for expired/initial passwords. Multiple logon permitted

System users are not capable of interaction and are used to perform certain system activities, such as background processing, ALE, Workflow, and so on.

A Reference user is, like a System user, a general, non-personally related, user.

Additional authorizations can be assigned within the system using a reference user. A reference user for additional rights can be assigned for every user in the Roles tab.

Q.What is a derived role?

Answer: Derived roles refer to roles that already exist. The derived roles inherit the menu structure and the functions included (transactions, reports, Web links, and so on) from the role referenced. A role can only inherit menus and functions if no transaction codes have been assigned to it before.

The higher-level role passes on its authorizations to the derived role as default values which can be changed afterwards. Organizational level definitions are not passed on. They must be created anew in the inheriting role. User assignments are not passed on either.

Derived roles are an elegant way of maintaining roles that do not differ in their

functionality (identical menus and identical transactions) but have different characteristics with regard to the organizational level.

Q.What is a composite role?

Answer: A composite role is a container which can collect several different roles. For reasons of clarity, it does not make sense and is therefore not allowed to add composite roles to composite roles. Composite roles are also called roles.

Composite roles do not contain authorization data. If you want to change the authorizations (that are represented by a composite role), you must maintain the data for each role of the composite role.

Creating composite roles makes sense if some of your employees need authorizations from several roles. Instead of adding each user separately to each role required, you can set up a composite role and assign the users to that group.

The users assigned to a composite role are automatically assigned to the corresponding (elementary) roles during comparison.

Q,What does user compare do?

Answer: If you are also using the role to generate authorization profiles, then you should note that the generated profile is not entered in the user master record until the user master records have been compared. You can automate this by scheduling report FCG_TIME_DEPENDENCY on a daily.

Q.Can we convert Authorization field to Org, field

Answer: Authorization field can be changed to Organization field using

PFCG_ORGFIELD_CREATE or ZPFCG_ORGFIELD_CREATE

Use SE38 or SA38 to run the above report.

Organizational level fields should only be created before you start setting up your system. If you create organizational level fields later, you might have to do an impact analysis. The authentication data may have to be postprocessed in roles.

The fields “Activity”, “ACTVT” and “Transaction code”, “TCD” cannot be converted into an organizational level field.

In addition, all affected roles are analyzed and the authorization data is adjusted. The values of the authorization field which is now to become the organizational level field are removed and entered into the organizational level data of the role.

Q.How many profiles can be assigned to any user master record.

Answer: Maximum Profiles that can be assigned to any user is ~ 312. Table USR04 (Profile assignments for users). This table contains both information on the change status of a user and also the list of the profile names that were assigned to the user.

The field PROFS is used for saving the change flag (C = user was created, M = user was changed), and the name of the profiles assigned to the user. The field is defined with a length of 3750 characters. Since the first two characters are intended for the change flag, 3748 characters remain for the list of the profile names per user. Because of the maximum length of 12 characters per profile name, this results in a maximum number of 312 profiles per user.

Q.Can you add a composite role to another composite role?

Answer: No Q. How to reset SAP* password from oracle database.

Logon to your database with orasid as user id and run this sql delete from sapSID.usr02 where bname=’SAP*’ and mandt=’XXX’; commit;

Where mandt is the client.

Now you can login to the client using sap* and password pass

SAP Security Interview Questions         SAP Security Interview Questions and Answers

Q.What is difference between role and profile.

Answer: A role act as container that collect transaction and generates the associated profile. The profile generator (PFCG) in SAP System automatically generates the corresponding authorization profile. Developer used to perform this step manually before PFCG was introduced bySAP. Any maintenance of the generated profile should be done using PFCG.

Q.What is user buffer?

Answer: When a user logs on to the SAP R/3 System, a user buffer is built containing all authorizations for that user. Each user has their own individual user buffer. For example, if user Smith logs on to the system, his user buffer contains all authorizations of role USER_SMITH_ROLE. The user buffer can be displayed in transaction SU56. A user would fail an authorization check if:

The authorization object does not exist in the user buffer

The values checked by the application are not assigned to the authorization object in the user buffer

The user buffer contains too many entries and has overflowed. The number of entries in the user buffer can be controlled using the system profile parameter auth/number_in_userbuffer.

  1. How to find out all roles with T-code SU01?

Answer: You can use SUIM > Roles by complex criteria or RSUSR070 to find out this.

Go to the Selection by Authorization Value.

In Object 1 put S_TCODE and hit enter.

And put SU01 in Transaction code and hit execute (clock with check) button.

I use authorization object, as you can use this to test any object.

You can also get this information directly from table, if you have access to SE16 or

SE16N. Execute SE16N

Table AGR_1251

Object S_TCODE

VALUE (low) SU01

Q.How to find out all the users who got SU01 ?

Answer: You can use SUIM >User by complex criteria or (RSUSR002) to find this out.

Go to the Selection by Authorization Value.

In Object 1 put S_TCODE and hit enter.

And put SU01 in Transaction code and hit execute (clock with check) button.

I use authorization object, as you can use this to test any object.

Q.How to find out all the roles for one composite role or a selection of composite roles?

Answer: Execute SE16N

Table AGR_AGRS

Composite roles You can put multiple composite roles using the more button

Q.How to find out all the derived roles for one or more Master (Parent) roles?

Answer: Execute SE16N

Table AGR_DEFINE

Use either agr_name field or Parent_agr field.

Q.How can I check all the Organization value for any role?

Answer: Execute SE16N

Table AGR_1252

Role Type in the role here and hit execute.

You can always download all the information to spreadsheet also using .

Q.How do I restrict access to files through AL11?

Answer: First create an alias. Go to t-code AL11 > configure > create alias. Let say we are trying to restrict alias DIR_TEMP which is /tmp. Open PFCG and assign t-code AL11, and change the authorization for S_DATASET as mentioned below Activity 33

Physical file name /tmp/*

Program Name with Search Help *

Q.How can I add one role to many users?

Answer:  SU10. If you have less than 16 users then you can paste the userids.

If you have more than 16 users – Click on Authorization data and click on next to users and upload from clipboard .

Hit the change button and go to the role tab and add the roles to be assigned and hit save.

Q.What are the Best practices for locking expired users?

Answer: Lock the user. Remove all the roles and profiles assigned to the user. Move them to TERM User group.

Q.How can be the password rules enforced ?

  • Answer: Password rules can be enforced using profile parameter. Follow the link to learn more about the profile parameter.

Q.How to remove duplicate roles with different start and end date from user master?

Answer: You can use PRGN_COMPRESS_TIMES to do this. Please refer to note 365841 for more info.

Q.How come the users have authorization in PFCG, but user still complains with

no authorization?

Answer: Make sure the user master is compared. May be the there is a user buffer overflow

Also check the profile- Follow the instruction below.

SUIM > User by complex criteria.

Put the userid of user who is having issue.

Execute

Double click on the user id and expand the tree. Select the profile in question and see if the authorization is correct or not. If not do the role reorg in PFCG and see if that helps.

  1. How can I have a display all roles.?

Answer: Copy sap_all and open the role and change the activity to 03 and 08

  1. How can I find out all actvt in sap?

Answer: All possible activities (ACTVT) are stored in table TACT (transaction SM30), and also the valid activities for each authorization object can be found in table TACTZ (transaction SE16).

Q.How many fields can be present in one Authorization object?

Answer: 10 fields.

Q.How to check the table Logs ?

Answer: First, we need to check if the logging is activated for table using tcode SE13. If table logging is enabled then we can see the table logs in t-code SCU3.

Q.What’s the basic difference in between SU22 & SU24 ?

Answer: SU22 displays and updates the values in tables USOBT and USOBX, while SU24 does the same in tables USOBT_C and USOBX_C. The _C stands for Customer. The profile generator gets its data from the _C tables. In the USOBT and USOBX tables the values are the SAP standard values as shown in SU24. With SU25 one can (initially) transfer the USOBT values to the USOBT_C table.

Q.How to remove duplicate roles with different start and end date from user master ?

Answer:  You can use PRGN_COMPRESS_TIMES to do this.

For More Contact SAP Security Online Training

SAP Security Interview Questions Overall rating: ★★★★☆ 4.4 based on 427 reviews
5 1

sap security interview questions

Write A Review 

Name
Email
Review Title
Rating
Review Content

SAP Security interview questions Tags

SAP Security interview questions and answers,SAP Security online training, SAP Security interview questions, active directory online training, SAP Security training, SAP Security training institute, latest SAP Security interview questions, best SAP Security interview questions 2019, top 100 SAP Security interview questions,sample SAP Security interview questions,SAP Security interview questions technical, best SAP Security interview tips, best SAP Security interview basics

For  online training videos