Omnicit.EntraRBAC.psd1

@{
    RootModule           = 'Omnicit.EntraRBAC.psm1'
    ModuleVersion        = '1.5.1'
    CompatiblePSEditions = @('Core')
    GUID                 = '7b9e4a1c-2d6f-4f3a-9c8b-1e5d0a7c3f42'
    Author               = 'Omnicit AB / Philip Haglund'
    CompanyName          = 'Omnicit'
    Copyright            = '(c) 2026 Omnicit AB'
    Description          = 'Manage Entra ID and Azure RBAC building blocks across tenants: Entra ID groups, PIM, Administrative Units, Entitlement Management, Access Reviews, Azure resources and RBAC, plus a JSON inventory and declarative apply engine.'
    PowerShellVersion    = '7.6'

    RequiredModules = @(
        @{ ModuleName = 'AzAuth'; ModuleVersion = '2.11.0' }
        @{ ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '2.36.0' }
    )

    # Loaded via Update-TypeData in suffix.ps1 (Remove-Module does not clean type data).
    TypesToProcess   = @()
    FormatsToProcess = @('Formats/Omnicit.EntraRBAC.Format.ps1xml')

    FunctionsToExport = @('Add-OERAccessPackageResourceRole','Add-OERAdministrativeUnitMember','Add-OERAdministrativeUnitScopedRole','Add-OERCatalogResource','Add-OERGroupEligibility','Add-OERGroupMember','Connect-OER','Disable-OEREligibleRoleAssignment','Disconnect-OER','Enable-OEREligibleRoleAssignment','Export-OERInventory','Get-OERAccessPackage','Get-OERAccessPackageAssignment','Get-OERAccessPackageAssignmentPolicy','Get-OERAccessPackageResourceRole','Get-OERAccessReviewDefinition','Get-OERAccessReviewInstance','Get-OERAccessReviewInstanceDecision','Get-OERActiveDirectoryRoleAssignment','Get-OERActiveRoleAssignment','Get-OERAdministrativeUnit','Get-OERAdministrativeUnitScopedRole','Get-OERAuthenticationContext','Get-OERCatalog','Get-OERCatalogResource','Get-OERConfiguration','Get-OERDirectoryRoleManagementPolicy','Get-OEREligibleDirectoryRoleAssignment','Get-OEREligibleRoleAssignment','Get-OERGroup','Get-OERGroupEligibility','Get-OERGroupMember','Get-OERGroupPimPolicy','Get-OERInventory','Get-OERManagementGroup','Get-OERRequiredScope','Get-OERResource','Get-OERResourceGroup','Get-OERRoleAssignment','Get-OERRoleDefinition','Get-OERRoleManagementPolicy','Get-OERSubscription','Invoke-OERAccessReviewInstanceDecision','Invoke-OERStructure','New-OERAccessPackage','New-OERAccessPackageApprovalStage','New-OERAccessPackageAssignment','New-OERAccessPackageAssignmentPolicy','New-OERAccessPackageRequestorScope','New-OERAccessPackageRequestorSettings','New-OERAccessReviewDefinition','New-OERAccessReviewStage','New-OERActiveDirectoryRoleAssignment','New-OERActiveRoleAssignment','New-OERAdministrativeUnit','New-OERCatalog','New-OERConfiguration','New-OEREligibleDirectoryRoleAssignment','New-OEREligibleRoleAssignment','New-OERGroup','New-OERPolicyNotificationRule','New-OERResourceGroup','New-OERRoleAssignment','Remove-OERAccessPackage','Remove-OERAccessPackageAssignment','Remove-OERAccessPackageAssignmentPolicy','Remove-OERAccessPackageResourceRole','Remove-OERAccessReviewDefinition','Remove-OERActiveDirectoryRoleAssignment','Remove-OERActiveRoleAssignment','Remove-OERAdministrativeUnit','Remove-OERAdministrativeUnitMember','Remove-OERAdministrativeUnitScopedRole','Remove-OERCatalog','Remove-OERCatalogResource','Remove-OERConfiguration','Remove-OEREligibleDirectoryRoleAssignment','Remove-OEREligibleRoleAssignment','Remove-OERGroup','Remove-OERGroupEligibility','Remove-OERGroupMember','Remove-OERResourceGroup','Remove-OERRoleAssignment','Send-OERAccessReviewReminder','Set-OERAccessPackage','Set-OERAccessPackageAssignmentPolicy','Set-OERAccessReviewDefinition','Set-OERAdministrativeUnit','Set-OERCatalog','Set-OERConfiguration','Set-OERDirectoryRoleManagementPolicy','Set-OERGroup','Set-OERGroupPimPolicy','Set-OERResourceGroup','Set-OERRoleAssignment','Set-OERRoleManagementPolicy','Stop-OERAccessReviewInstance','Test-OERStructure')
    CmdletsToExport   = @()
    VariablesToExport = @()
    AliasesToExport   = @()

    PrivateData = @{
        PSData = @{
            Tags                     = @('EntraID', 'Azure', 'RBAC', 'PIM', 'Identity', 'Governance',
                                          'PSEdition_Core', 'Windows', 'Linux', 'MacOS')
            ProjectUri               = 'https://github.com/Omnicit/Omnicit.EntraRBAC'
            LicenseUri               = 'https://github.com/Omnicit/Omnicit.EntraRBAC/blob/main/LICENSE'
            IconUri                  = 'https://raw.githubusercontent.com/Omnicit/Omnicit.EntraRBAC/main/assets/icon.png'
            RequireLicenseAcceptance = $false
            ReleaseNotes             = '## [1.5.1-preview0006] - 2026-11-10

A refused call now says what is wrong. `Get-OERActiveRoleAssignment`, `Get-OEREligibleRoleAssignment` and
`Get-OERRoleAssignment` report two of `-User`, `-Group` and `-ServicePrincipal` as
`MutuallyExclusiveParameter`, not `PrincipalNotFound`. `Get-`/`Set-OERRoleManagementPolicy` refuse a
`-PolicyId` that is not an Azure Resource Manager path with `InvalidPolicyId`, reading and writing nothing,
and name the directory role cmdlets to use. The causes in an `InventoryPartial` message no longer end in
two full stops, and the `-AccessReviewFilter` help says which names Microsoft Graph matches itself.

An Azure access token now goes only to the Azure Resource Manager address of the session''s cloud: any other
address is refused with `ArmRequestOutsideCloudHost` before the token is read, so a path that does not
begin with `/` can no longer carry the token to another host. `Remove-OERRoleAssignment` and
`Set-OERRoleAssignment` refuse an `-Id` that does not begin with `/`.

Exported access reviews reference an access package or assignment policy whose name has the form of an
object id by its id, and such a package''s own entry is left out and named unread, as a catalog''s is. In a
group''s `pimPolicy`, `Invoke-OERStructure` refuses a declared `authenticationContextId`,
`activationEnablement` or `activeEnablement` over a rule the policy read lacks (`PimRuleValueUnknown`),
and `Get-OERGroupPimPolicy` gives `$null` for such a list.

A Microsoft Graph page link (`@odata.nextLink`) that does not address the Microsoft Graph host of the session''s
cloud is now refused with `GraphPagingIncomplete` before it is requested, so the access token is never sent
with it. Links on that address are followed as before, in every cloud.

A directory role access review can cover only the eligible or only the active assignments of a role (users
only): declare `directoryRole` with `directoryRoleAssignmentType` `Eligible` or `Active`, or pass
`-DirectoryRoleAssignmentType` to `New-OERAccessReviewDefinition`. Omitted, it is the review of the users assigned to the role, as
before. The export writes the key for such reviews, so they round-trip. A review found by name in another
form is refused with `AccessReviewScopeMismatch` and nothing is written, since a review''s scope cannot change.

'

            Prerelease               = 'preview0006'
        }
    }
}