cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to identify Login user as Manager in Add new Employee screen - SAP SuccessFactors

karthik1gobburu
Participant
0 Kudos
338

Hello Everyone-

My requirement is when login user is a manager & he tries to select email type as Business system should show an error. I have created the below business rule using "empl information model" -

 

karthik1gobburu_0-1747281671629.png

 

The above condition is not working , I also have tried below options-

1- Is Position Below User’s Position In Hierarchy() (New Version)

Please advice as how can we identify login user as a manager in Add new employee scren.

 

 

 

Accepted Solutions (0)

Answers (3)

Answers (3)

MRUTYUNJAY
Explorer

Hello @karthik1gobburu ,

To achieve the desired result as per your requirement you can create business rule as attached:

MRUTYUNJAY_0-1747512490903.png

You need to

  • Create one variable for Login User.
  • In the IF part of the business rule, you need to check the value of the Supervisor (Is Manager?) field for the logged-in user. If the Supervisor value is set to "Yes" for the logged-in user, then he/she is considered a manager, and this logic will produce the desired result.

I believe this solution meets your requirement.

 

KR😊

Mrutyunjay Kumar

karthik1gobburu
Participant
0 Kudos

Hello @MRUTYUNJAY

Do we need a custom  field called "Is manager? in Job Information portlet? and maintain yes/no for all employees?

The problem for my customer we donot have any such field.

 

Please advice

Karthik

karthik1gobburu
Participant
0 Kudos

Hello @JonasCosta.

My exact requirement is like this...

If a Manager goes to ADD NEW EMPLOYEE >> Goes to Email type as "Business" then system show an error message that "Managers are not allowed to select emailtype as business"

But when others ( like HR / superadmin) do the same no error should be shown. 

The above scenario is to restrict managers from entering business emails.

Please advice on this.

 

MRUTYUNJAY
Explorer
0 Kudos

Hello @karthik1gobburu 

If Position Management is activated, then go with below solution:

MRUTYUNJAY_0-1747668536517.png

This logic will produce the desired result.

 

KR😊

Mrutyunjay Kumar

karthik1gobburu
Participant
0 Kudos
MRUTYUNJAY Unfortunately i dont have any field "is manager" in Position . Any other alternate solution u have?
MRUTYUNJAY
Explorer
0 Kudos
Karthik ,the above solution does not require any custom field. It's based on a function "Get Number of Child Position()"
JonasCosta
Explorer
0 Kudos

Hi @karthik1gobburu 

 

Let me know if I understand what you need?

You need to identify the manager when he do a change and, if them so you shows an alert message, rght?

If yes, you can user this function to do it:

JonasCosta_0-1747384504310.png

It means that when the login user (or current user depending of your scenery) be in a specific "Manager Permission Group", the system will trigger your message.

Note that 1) you need to define the correct scenery for your requirement to obtain the expected behavior, 2) on your printscreen you shows the "Basic Scenery", please note that this scenery will be depreciate by SAP, so it is not recommended to use it on your rules.

I hope that this could helped you.

 

Best Regards,

JC