Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.6.1 #50

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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