Omnicit.PIM.psd1

#
# Module manifest for module 'Omnicit.PIM'
#
# Generated by: Omnicit
#
# Generated on: 2026-03-25
#

@{

# Script module or binary module file associated with this manifest.
RootModule = 'Omnicit.PIM.psm1'

# Version number of this module.
ModuleVersion = '0.6.0'

# Supported PSEditions
CompatiblePSEditions = @('Core')

# ID used to uniquely identify this module
GUID = 'ed16ca8d-c9c0-4987-90b9-749edc96ebb8'

# Author of this module
    Author = 'Omnicit (originally by Justin Grote @justinwgrote)'

# Company or vendor of this module
CompanyName = 'Omnicit'

# Copyright statement for this module
Copyright = '(c) Omnicit. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Entra ID Privileged Identity Management (PIM) Self Activation Commands for Directory Roles, Azure Resources, and Entra ID Groups'

# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '7.2'

# Name of the PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# DotNetFrameworkVersion = ''

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# ClrVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
    RequiredModules  = @(
        @{ ModuleName = 'Az.Resources'; ModuleVersion = '9.0.3' }
        @{ ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '2.36.0' }
    )

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
    # Disabled: TypesToProcess re-registers type members on every Import-Module -Force but Remove-Module does NOT
    # clean type data, so the second test file import fails with "member is already present" errors.
    # Types are loaded via a single Update-TypeData -AppendPath call in the psm1 suffix instead.
    TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
    # Re-enabled: all format targets are Omnicit.PIM.* custom types (no Az-native type overrides), so
    # the AppendPath precedence issue with Az.Resources no longer applies.
    # The orphaned RoleAssignmentScheduleRequest override was removed because all Azure functions now
    # wrap output with Omnicit.PIM.AzureAssignmentScheduleRequest before returning.
    FormatsToProcess = @('Formats/Omnicit.PIM.Format.ps1xml')

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = @('Connect-OPIM','Disable-OPIMAzureRole','Disable-OPIMDirectoryRole','Disable-OPIMEntraIDGroup','Disable-OPIMMyRole','Disconnect-OPIM','Enable-OPIMAzureRole','Enable-OPIMDirectoryRole','Enable-OPIMEntraIDGroup','Enable-OPIMMyRole','Get-OPIMAzureRole','Get-OPIMConfiguration','Get-OPIMDirectoryRole','Get-OPIMEntraIDGroup','Install-OPIMConfiguration','Remove-OPIMConfiguration','Set-OPIMConfiguration','Wait-OPIMDirectoryRole')

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()

# Variables to export from this module
VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @('Connect-PIM','Disable-OPIMMyRoles','Disable-PIMADRole','Disable-PIMGroup','Disable-PIMResourceRole','Disable-PIMRole','Disconnect-PIM','Enable-OPIMMyRoles','Enable-PIMADRole','Enable-PIMGroup','Enable-PIMResourceRole','Enable-PIMRole','Get-PIMADRole','Get-PIMConfig','Get-PIMGroup','Get-PIMResourceRole','Get-PIMRole','pim','Remove-PIMConfig','unpim','Set-PIMConfig','Wait-PIMADRole','Wait-PIMRole')

# DSC resources to export from this module
DscResourcesToExport = @()

# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

    PSData = @{

        # Tags applied to this module. These help with module discovery in online galleries.
            Tags       = @('PIM', 'Azure', 'EntraID', 'Identity', 'Privileged', 'Windows', 'MacOS', 'Linux')

        # A URL to the license for this module.
            LicenseUri = 'https://github.com/Omnicit/Omnicit.PIM/LICENSE'

        # A URL to the main website for this project.
            ProjectUri = 'https://github.com/Omnicit/Omnicit.PIM'

        # A URL to an icon representing this module.
            IconUri = 'https://raw.githubusercontent.com/Omnicit/Omnicit.PIM/main/assets/icon.png'

        # ReleaseNotes of this module
        ReleaseNotes = '## [0.6.0-preview0003] - 2026-10-08

The module''s source files are now plain ASCII without a byte-order mark. A few progress and confirmation messages and some help text show `--` and `->` where they used to show a typographic dash or arrow; apart from those characters, the ASCII change alters nothing about how the module behaves. `Get-Help about_Omnicit.PIM` now lists every command by area, and new automated checks keep the unit tests away from any real tenant and keep identifiers and credentials out of the documentation.

`Connect-OPIM`, `Enable-OPIMMyRole` and `Disable-OPIMMyRole` take a new `-DeviceCode` switch for machines without a browser, such as a remote session or a cloud PC: the command shows a short code and the address to open, and you finish the sign-in on any device. With `-IncludeARM`, Azure signs in with a device code too. Once used, every later sign-in in the same PowerShell session uses a device code until `Disconnect-OPIM`. Without the switch, sign-in is unchanged.

A session now stays on its tenant: a command that names none keeps the one you signed in to, a token for another tenant is refused (`TenantMismatch`), and Azure signs in to the same tenant, reuses an earlier Azure sign-in only for the same account, and asks for no subscription. The role, group and sign-in commands send nothing under a Microsoft Graph session another `Connect-MgGraph` started (`GraphSessionChanged`); run `Disconnect-OPIM`, which also disconnects that session, and sign in again. A command whose sign-in at its start was refused sends nothing more (`SignInRefused`), and a sign-in refused while a failed request is retried fails only that request; after a failed Azure sign-in (`AzureConnectFailed`) nothing is sent to Azure under an earlier one. `pim` and `unpim` stop when the Graph sign-in fails, and skip only Azure when the Azure sign-in fails unless the error preference is `Stop`. Errors from a failed Graph request or Azure role command no longer carry your sign-in token. Role and group lists read every page, a list that cannot be read is reported as that error instead of "not found", and `Wait-OPIMDirectoryRole` checks requests one after another (`-ThrottleLimit` has no effect).

A role or group can now be named by its display name, in the `Get-`, `Enable-` and `Disable-` commands: `Enable-OPIMDirectoryRole ''Usage Summary Reports Reader''`, `Enable-OPIMEntraIDGroup ''Finance Team'' -AccessType Owner` (a group name means the membership by default) or `Enable-OPIMAzureRole ''Reader'' -Scope <scope>`. The tab-completed form keeps working, and tab completion offers the bare name whenever it is unique. A name, or an `-Identity`, that matches more than one role is refused with the candidates (`AmbiguousName`) and nothing is activated or deactivated; for a role name on the `Enable-` and `Disable-` commands and on `Get-OPIMAzureRole`, `-Scope` picks one; otherwise the tab-completed form does. A name that matches nothing is `EligibleRoleNotFound`, and deactivating a role that is not active is `ActiveRoleNotFound`, which says so when the role is eligible but not active (already deactivated, or its activation has not finished yet) and names the active form when the role is active under another name; neither stops the command, and each name in a list is resolved on its own. `Get-OPIMAzureRole -RoleName` and `-Identity` now find roles below the root scope without extra rights, `-All -Scope` returns only the roles at that scope, and a `-Scope` ending in a slash is refused.

'


        # Prerelease string of this module
        Prerelease =  'preview0003'

        # Flag to indicate whether the module requires explicit user acceptance for install/update/save
        # RequireLicenseAcceptance = $false

        # External dependent modules of this module
        # ExternalModuleDependencies = @()

    } # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}