Skip to content

Commit

Permalink
Merge pull request #50 from kayasax/reporting
Browse files Browse the repository at this point in the history
V1.6.1
  • Loading branch information
kayasax authored May 24, 2024
2 parents 571f07d + a1a49a4 commit fdd2744
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion EasyPIM/EasyPIM.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = 'EasyPIM.psm1'

# Version number of this module.
ModuleVersion = '1.6'
ModuleVersion = '1.6.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
14 changes: 5 additions & 9 deletions EasyPIM/functions/Remove-PIMGroupActiveAssignment.ps1
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
<#
.Synopsis
Create an active assignement at the provided scope
Remove an active assignement at the provided scope
.Description
Active assignment does not require users to activate their role. https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-resource-roles-assign-roles
.Parameter tenantID
EntraID tenant ID
.Parameter subscriptionID
subscription ID
.Parameter scope
use scope parameter if you want to work at other scope than a subscription
.Parameter principalID
objectID of the principal (user, group or service principal)
.Parameter rolename
name of the role to assign
.Parameter duration
duration of the assignment, if not set we will use the maximum allowed value from the role policy
.Parameter groupID
ID of the group
.Parameter type
member or owner
.Parameter startDateTime
When the assignment wil begin, if not set we will use current time
.Parameter permanent
Expand Down
4 changes: 3 additions & 1 deletion EasyPIM/internal/functions/Invoke-graph.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function invoke-graph {
"RoleManagementPolicy.ReadWrite.AzureADGroup",
"PrivilegedEligibilitySchedule.ReadWrite.AzureADGroup",
"PrivilegedAssignmentSchedule.ReadWrite.AzureADGroup",
"PrivilegedAccess.ReadWrite.AzureADGroup")
"PrivilegedAccess.ReadWrite.AzureADGroup",
"AuditLog.Read.All",
"Directory.Read.All")

Connect-MgGraph -Tenant $script:tenantID -Scopes $scopes
}
Expand Down

0 comments on commit fdd2744

Please sign in to comment.