
Director Consulting Expert
CGI
All right, please welcome Klaus Bierschenk. Klaus is the Director of and a Consulting Expert at CGI. And the session today is PIMp Your Administration: Strengthening Zero Trust with Entra ID. Klaus, please give a warm welcome to Klaus. Yes, thank you very much, and welcome to HIP Conf in Europe. So I want to start with a quick question. So what do you think how many Entra ID roles do we have in a tenant? Pretty cool, 134. So one more question and this is my last question. What do you think? How many Azure roles do we have today? So I can make it easy. There are more than 800. So in my opinion, these numbers make a lot of sense because we have many services in Asia and we have many roles, many administrative tasks in Entra, and we must have these roles. And I want to show you how important it is to have a proper management to work with that assignment of that roles. And this is where privileged identity management comes into the game here. So it provides us the possibility to have just in time access and just enough access. But before we start, let me quick introduce myself. So yes, I'm Klaus Bierschenker. I'm from Germany. I live in Bavaria. And you can find me on social media and LinkedIn and all these things. So do not hesitate to get in touch with me. We can discuss all these things. I'm here the entire day. And yes, that's about my person. The agenda for today is when we talk about PIM, it's not so easy to just talk about PIM so because there are many concepts in PIM. And so what I considered is that I have an example, and my example is a school environment. And we put that PIM elements and methods and so on into that school environment. And we will also see how can we improve PIM when we combine it with other technologies like access packages, life cycle workflows and of course conditional access policies. And we cannot talk about PIM without talking about PIM for groups. So who of you has used PIM for groups already? Perfect. And there at the end, so when time is enough, have a couple of more things that we can talk about, but we will see this at the end. Yes, this is my environment. And when we talk about a school environment, we can see the entire school, and that school can be our tenant. Then we have more granular setting here, and this can be or this is these are the classes, and we can have specific administrative requirements on a class level. And then the third option, what we have is that we have definitely students who needs psychological support, which have troubles and all these things and this sensitive student support, this is how I call it, we can protect it on the access level and we will see how we can do this. So let me start with that tenant setting. We have PIM for groups for multiple global administrative access. So when we use PIM and we have in PIM a couple of roles, we have seen this. We have only one role and one setup for that role. This is in many cases enough and it works, but in many other cases we must have we have multiple departments, we have a help desk department, we have last level engineering department, etc, etc. And all these different departments have specific requirements in getting that role assignments. We will discuss this and I will show it to you in a minute. In my demo I will not touch built in roles. It's not necessary when we have groups. We can make this with groups. I will not talk too much with break glass accounts. It's not so important here, but they have a special requirement and payment. We have that permanent assignment, that active assignment. And this is what we have in every tenant and also in our in my school tenant here. And our end users, don't have access to the Entra admin center. And this is a specific or special requirement that we have because PIM is in Entra. I mean I do not allow them to get to Entra, how should they can activate their roads? But we can see how we can fix this. And then why my favorite topic here is to combine activation of PIM groups or roles with conditional access policies to have a reaction here when it is allowed to have a user getting assignment of a role. So we have a user which is in the help desk department, for example, and we want to let him or her to have access to a role, but not in any case. We want to have conditional access as a decision, as an access decision. And we can then set up a conditional access policy who helps us in that case. We can have we have a target here, we have granting, we have blocking, and we have conditions. And we can say, okay, it is allowed to activate that role when he is in a trusted network or when he uses a trusted device, for example. This is possible. So we cannot only say, Okay, it's always allowed that he can activate this. We can say, Okay, he can activate maybe. It depends on the conditional access. So we can combine both together. Okay. So this is my first slide and we have the first demo here. I want to start to show just keep an eye on Privileged Identity Management here. And this is what I mean when I talk about that Entra role. So we have these roles here as a setup and each role it doesn't matter where it is which one I select here it has his role settings. And with that settings I can specify, Okay, what are the rules to activate that role. So it's loading. Okay, here it is. So we have the duration and all these things. When you are familiar with PIM you know all these things. And this is what we have on a role level. And when we then say, okay, but we have different requirements, we can bring that groups into the game here. And I have a few groups here in my tenant and I have two global admin groups. I have that config engineer and I have that support engineer. And both of them, they have different durations in membership of that of that rule in the duration time. When I opened that config engineer here, so I can see, okay, that group which is in PIM has these assignments and on that assignment list here I have a couple of users and they are eligible to get membership of that group. This is the first step. They are allowed to require access to that group. Is the first step and the important thing here is that when I focus on that group I can say okay I have specific settings here. Settings this is membership setting. I say okay with that config engineer I have 8 hours and I have that authentication context. We will see later what is that authentication context. But I have another group and this is the support engineer and the support engineer has his own settings. So there is no authentication context and the duration here is 30 minutes. But both of them, they are global admin but with different duration or different other settings. So maybe the prover can be specified here or any other things. So when we see this we can say, okay, is not necessary to touch the built in roles. Of course you will have assignments on a role level without a group, but normally for all the other roles it is not necessary to touch this built in role. When we talk about conditional access, so who is familiar with protected actions or authentication context in the room? So in my opinion, this is the real power because we can then make decisions on what are we here. So in my case I have a user it is Richard Langley and he is eligible to get global admin access with the group, but when he is on a trusted device. And it is not allowed when he goes through the conditional access blade with an iPhone. What makes no sense? Can very easily implement this. And we have to start here with that setting in the conditional access blade and what we have to set up here at first is an authentication context. Authentication context is it's a label or tag. It's just a string. And with that string, that specifier, in my case here it is HIP CONF PIM protection, we can use this specifier to put it into that conditional access policy. I have that example here with that dedicated policy for that specific user. And when we open this we see that we have to specify that authentication context as a target. And target is not just always an application, it can also be an authentication context. And whenever that authentication context as a signal in Entra is discovered or seen, then that conditional access policy is fired. And this makes lots of sense. This gives you the possibility to build huge requirements in your company with specific conditional access policies or all the other things. When we go to that group here, I have that group config engineer and this is I have eligibility on that group. We have seen this before. And in that settings point here, I have when somebody gets access to that membership, that authentication context is fired. So that assignment is granted or given when that conditional access policy says yes or when it is not blocked. This makes lots of sense. And we have another option here we can say okay we want to have MFA but in my case we can specify that authentication context here. And this gives you a big opportunity to build your custom needs. I have that iPhone here from Langley and when he tries to activate this on an iPhone it says, sorry, but that's not allowed. We cannot do that. This is when the conditional access policies comes into the game here. And yes, this is German. Yes, bad luck today. You cannot access this. Go to your browser, go to your device and then you can do it. And when we do this with Langley, when we switch that browser context here, when we go to another profile, as Langley, we can open aka. Mspin and can see that when of course when he now he tries to activate this that this works. This is an example with that device. Not sure if this makes sense, but I just want to show you that what is possible here. So we can combine this with trusted networks for example or with any other topics with a non compliant machine with devices which are not registered or not compliant etc, etc. And all these things are working here. This makes lots of sense. Okay. So let me switch back to my slide deck. So the next level that I want to talk about is that class level access. So this is when it comes when it is interesting in my opinion because we can use a very wonderful feature in Entra, it is administrative units and we can use an administrative unit. In my case it's a school class, but it can be a project for example, where you have admin roles for project office assistants and these people can assign licenses or can make group topics and all these things. And in my case here, we have that students with a dynamic membership role in that administrative unit. Who's familiar with AUs, with administrative units? Okay. It's possible that we can have a dynamic membership rule to put on a criteria members in that administrative unit. That's the easy part. The challenge here is how can we make this with class admins. Class admins means in my case administrative unit admins. There is no possibility in Entra to make this with a dynamic rule or something like that. But we have other technologies in Entra where we can set up an automatically workflow. And this makes in my scenario lots of sense. So consider, you have a school with, I don't know, 20, 30 classes, and this the class teacher, it's end of school year. They are moving. They are you must rebuild the entire setup setup. And this is a manual task. It's error prone. It makes no fun. It's boring. We don't want to have this. We want to make this on an automatically basis. And we have a couple of features in Entra ID's. I've stated before how we can make this on an automatically basis. So when I go back to my tenant here, we have that administrative units in roles and admins and I have a few of them here. I have two classes. This is class 7B and class 8A. And we want to start here at the top. So I have my dynamic membership rules. This is what I mentioned. I decided to use the extension attribute. It is Class 8A, although every student which has that attribute set is in that dynamic membership in that administrative unit. But when we go to that administrative unit and we have that roles and administrators here, this is what I mean. We can assign all these groups manually. This is what I say what I mean when I say this is error prone and can be there's many misconfigurations can happen here. And what I do in my tenant here, I have teachers. And one teacher is Vanessa, for example, and she has department. This is her class. It's class 8A. And yes, she's a teacher. And when this attribute changes something should happen. So what do I need when I want to have a workflow triggered on that attribute? I need two things. I need at first the group. We have seen that group is already here and when we have a group we can create it with that setting here it means okay we can use this group in PIM. This first thing what I must have here. I have these groups already and what I must now assure is that Vanessa goes into that group. Of course, I can do that manually, but when I use an access package, for example, which is a governance feature. So I have a few access packages from every class. I have one access package and in my example here, to keep it simple, in that access package I have just one resource. And you can guess that resource is that PIM group. And now we can use that access package to the user. But that's manually. I don't want to have it manually. But it works. We can put, by the way, other resources into that access package to deliver it to that user. But to have it on an automatically way here, we must use lifecycle workflows. And with lifecycle workflows we can, when something happens in my tenant, getting an access package and put it to the user. That's the simple magic behind. And in my case, I have a workflow for each class 8A, 7B, and I have it. I have that execution condition here. And that execution condition says, Okay, you have to listen on the department attribute. And when something changes here on the department attribute, that workflow should fire. And a couple of more things must be given to go to that specific user. This is defined in the scope details. In the scope details I have a more specific setting here I say, okay, department must be 8A and the employee type must be a teacher. That's it, nothing more. Then we have the tasks and in the tasks I can assign an access package. And now what's happened when we change the department attribute from a teacher? It is identified or triggered from a lifecycle workflow and then that access package goes to that user. This is one example how we can work around that not given automatically assignment of roles in Entra ID. So in my opinion this is not a lack of design or architectural features what we have here. So I think this is by design that we cannot automatically design so big, huge roads with so many permissions on an automatically way. This makes no sense to assign global admins or any security admin roads on an automatically basis. But there are some situations in Entra where it can make sense. In my example here with the school, it can make sense, and then this is one workaround. The disadvantage of this is so access packages, lifecycle workflows, these are governance features, so it must be additionally licensed in Entra. But there are other ways. Logic app for example where we can keep an eye on that Entra object and see, okay, when something happens here, do something. This makes sense. The next level is sensitivity or sensitive student support. To be honest, at the end, we must, of course, have a data protection here. So that content must be protected with Purview, with SharePoint permissions, all these things. But when we go came from Entra with that user. And when we can or when we have the option to block that access here to protect the group, for example, in a specific way, this can make a lot of sense. And there are a few concepts in Entra where we can do this. And one thing is here to protect groups. There are a couple of options how we can protect group. One option is to make it in PIM available, but this makes no sense because PIM groups are not there to protect members in a group. They are there to eligible assignment. But we have the option to protect administrative units. And when we protect this object, there is always a possibility for a global admin, for example, that he or she can getting access into that group that he can give on his basis the access to that group. This can make sense, but we must have a specific alert on that change when that group is changed. And I will show you what I mean in a second when we have that assignment on that administrative unit. So back in my tenant here, I go to roles and admins. This is where we have the administrative units. And I have one unit here. This is protected objects. What else? And I have one student here in that administrative unit and I am a global admin. I'm logged in here as Klaus. Let me go back. One second. So as you can see here I'm a global admin and when I go to that administrative unit to that user I'm not allowed to do anything here with that. And I can also not add members in that administrative unit or all these things. As in global admin, of course, I can do that. But in that case, it makes sense to monitor that group. But this is a very easy, very simple way how we can protect objects from others because a lot of roles in Entra are able to make group membership changes: Exchange admin, SharePoint admin, Intune admin, of course the group admin, all these roles they can touch groups. And in that case we have the possibility to protect this thing here. So now I am as close as a global admin, I am in that administrative unit and I cannot touch student 5. But now I'm a smart guy, I go not through that administrative unit, I go from the user's blade directly and when I came from here it's also protected. So this is not just in that administrative unit, it's tenant wide. Makes lots of sense. I love these features but to be honest this is just the first step in getting access to an object and as in Global Admin you are able to give yourself the access but it locks many, many other roles out. Groups admins and all the other roles that I have mentioned which are able to getting access here. Okay. So the next topic here is so we cannot talk about PIM without talking about PIM4 Groups. And when we see that group in PIM then we have the user here, we have the Entra role here and the group is in between. And we have two options to provide that membership in that group and that assignment to that role. On the left side here, I have that admin and that admin has an active assignment to the PIM group. In that case then the PIM group is eligible to an admin role. This works When for example we have the PIM Group and I have a couple of admin roles eligible to the PIM Group, security admin, global reader, whatever, and then I am as the admin go to my PIM dashboard, I see all that groups which I can then step by step enable or activate. This can make sense to combine multiple role assignments, for example. This can make lots of sense. But on the other way, on the right side here, it's different. I have that user admin again, but he or she is eligible to a group and that group has an active assignments to one or more admin roles. And this is very powerful. For example, you have a help desk department for example and the help desk persons there must have license admin, authentication admin and group admin for example. And you won't give them the chance to activate all these roles on one step. Then you have to go with that right scenario. In that case, this is Active, the DEPIM Group, to the multiple roles and the admin has with one eligible activation the possibility to activate a multiple number of roles here. So there is no do or don't. There is no right or wrong. So these are two options. Both are, in my opinion, very powerful. What I often see is on the left side, this one, this is specifically used when you have multiple global admin activations with multiple people. So one need an approval, the other one needs an authentication context, what we have seen or any other things to have more different ways to activate this. This can make sense. And that one on the right side, on the same way, can also make a lot of sense here. Okay, so let us I have an example here. So we have PIM dashboard here. So I have a couple of groups here and that test group is an example with it on the picture before on the left side. So we have that assignments here, in that case it is user flow hike and he has that eligible assignment, active assignment. And in that case we must on top assign the group, we must have that eligible assignment from the test group to roles. So this is what we do here. And this is what the user then see when Frohike in that example, when he goes to the PIM dashboard, he see all the roles which are assigned to that group. This is a powerful feature. You can many you have many options in setting this up and to fulfill different requirements. Keep in mind both strategies works in that case and both are very helpful. Okay. So but the PIM is not just that what I showed you. PIM is much more. We have a lot of other topics to discuss when we talk about PIM. So one thing what I want to discuss with you is we have that Entra admin center access restricted. Who has this restricted in your environment? Perfect. But when I restrict this and then I have a user Langley or Frohike or however his name is and they want to get access they cannot do this because it is restricted and they are not in an admin role. And for this scenario Microsoft has direct links. I have both of them here in the appendix of that slide deck you can find these there. And these URLs they are white listed. You can get access directly to that portal in that case. By the way this will not work when you have a conditional access policy which has as a target an admin portal. These are admin portals And then you have a problem. This will not work. You should keep this in mind. And by the way, a fast way to get access is aka. MsPIM, which also makes sense to get access here to the PIM dashboard. But there are more things what we should discuss what I have in my mind. So one thing is so I do not understand why Microsoft don't have the PIM stuff in my access portal. This makes, in my opinion, sense because I can do many other sub admin tasks in My Access. Why not working with that PIM assignments and all these things? This maybe it is later on the road map, I don't know. I have no information. But this can make sense in my opinion. And by the way, myaccess. Microsoft.com, it's not included in the app importer target. Yes, let me talk about PIM. We must or should also talk about licensing. So I'm not a licensing consultant so I yes, you know what I mean. But licensing in PIM is important. So you must know that it is possible to work with PIM technology when you have one or two of your license in your tenant or when your tenant is a P2 license. But you must keep in mind that you are only compliant when every user who is interacting here with PIM must have a license. And this means every member in the privileged role privileged admin role, every user who is as an approver active must have a license and members in the groups and so on. So don't forget the licensing to be compliant. Delayed cleanup with PIM Group. So this is just for a cosmetic option, but when you have maybe when you're wondering this, so we have that group in Entra and you publish that group to PIM. This is your principle, this is your object and when you delete this, it remains in PIM. You cannot use this. It cannot be used to get it cannot be part of an access token. And Microsoft documented this that with clean up processes and housekeeping stuff they remove this. And that's true. Microsoft documented that it takes 1 to 5 days and I've tested it with a couple of groups and it's always the same result 24 hours and then it's gone. But this is just for cosmetic. Auditing it's a very important topic in privileged identity management. It's very simple when we talk about role auditing. Role auditing is in PIM. We can find this directly in the PIM dashboard. We go to roles resource audit. So here you can see what's going on. So Langley has activated something, Klaus had activated something or things like this. But group activation it's not a role task. It's a group task. When you activate membership of a group it's not a role activation it's a group membership change. And you cannot see this in the PIM dashboard. You have to go for this to the audit logs and you can filter that list with service is PIM and category is group membership. And then you can see what has happened with my group in that example. And I go to monitoring and health and we have the audit logs here. And when we filter this service is PIM, for example, and category is changed here. So then you see all the things that happened in last month or so. But you must keep in mind that it is a group membership change and not a role assignment. Okay. Yes, AI is everywhere. It's also in security and a security co pilot in the Entra Admin Center. And so in preparing to that session here, I considered, so how can we integrate a demo in the security co pilot here, and I decided to use a tiny demo. And I'm logged I was here logged in as as Langley. And Langley when I find the right button here. So Langley asks security co-pilot, so list my eligible role assignments in PIM. And it takes a few seconds and then it comes back with, okay, Richard, you are assigned to global admin, security admin and conditional access admin. And then I ask again, so please, I want to change something on the conditional access policies. Help me activate the least privilege role. And then it takes again a few seconds and it comes back and says, hey, it's conditional access admin should be activated. Yes, we can activate it directly here in the Security Copilot embedded edition. And then it is activated. And we can ask again, we can say, okay, so let me see what roads I now have completely. And that list is different from that what we have deactivated because in that case I have also the global reader which is fixed assigned in that case. Wrap up a takeaway. Very quick, so keep in mind just in time access, just enough access can be very powerful established on a role basis on a one to one or one to end relationship. Keep in mind PIM4 Groups is real world because administrative units they are not just school classes, are project offices or any other things in your environment. Yes, full automation can make sense and there are options and possibilities in Entra ID to implement this. I have on top a few additional readings here. So one thing that I want to mention here on that case is that last entry here, it is how you can activate security copilot, for example. I have this is in my GitHub, and it's a very tiny script. These are just three commandments. And the important commandments here is that new AG resource. So when you have played around with security Copilot, is very expensive. You have $4 per unit per ICU and so on. And this is very expensive when you let it entirely run the entire week or the month. And with that script you can activate SCU or can create it on a resource group and with another script you can delete the entire resource group. This can make sense when you want to play around with these features and it can make sense to save money in that case. But I have heard that security Copilot is licensed later on the five basis and then I guess things are cheaper. One minute left, so I think it's learning by point. So are there many questions? Maybe I'm here, we can discuss it now or we can see. When I use PIM to assign any roles, resource or groups via eligibility, Is there some overview or there's some way I can figure out which resources a user is eligible to use via PIM? From which perspective? From that user who is assigned or from an administrator? From administrative perspective. So, for example, if one user, he has maybe access to a lot of different groups and roles, and I just want to see where is he everywhere in the environment where he is eligible to use one of those resources via PIM. Yeah. There are couple of ways. One way is the PIM dashboard, and the other way could be that you you use the the Graph Explorer to figure out the user or the role and to see what is it in all that. Makes sense? Hi. So we use PIM, enabled groups and roles currently, and rolling out more groups. We have struggled a lot with acceptance from other users because we have a big issue with cache credentials in the different admin portals like Exchange and stuff. So they are begging us to allow us 12 hours of PIM enablement. And I saw you have a slide with only thirty minutes. I think they would hunt us down if we try to do that because we now already have trouble with an exchange administrator not getting all the access he should be getting from that role because he accidentally opened the admin portal before he activated his role. How do you know any ways to fix that easily? Yes, there's a way. It's not documented by Microsoft, but there's a URL which you can use when you can just I have I don't have it here now, but I can give you in a minute. It is token refresh or something before. When you call this, you are in the PIM dashboard. But the what it does, what it makes is it gives you a new new access token. Nice. And this is exactly what you what you need, I guess. By the way, that example, the 30 minutes, it makes no sense, to be honest. It's just to show you what what's possible and what we have here. Yeah.
Privileged Identity Management (PIM) is a key technology in any Zero Trust environment, essential for enforcing Just-in-Time and Just-Enough-Access principles. But PIM is not a plug-and-play solution.
In this session, learn how to avoid common pitfalls and how administrators can unlock the full potential of PIM. We’ll cover practical use cases such as PIM for Groups, the integration of protected actions, and Conditional Access policies — all illustrated with live demos — and discuss field-tested insights into how to identify and protect critical elements in Entra ID and how Security Copilot can help proactively strengthen administrative security.
Leave with actionable insights and best practices to help you enhance control and security in your daily operations.

Director Consulting Expert
CGI
Thanks for subscribing!