Web-based PIM activation tool for Microsoft Entra ID roles, groups, and Azure resources
1.3K
A web-based Privileged Identity Management (PIM) tool for Microsoft Entra ID, PIM-enabled groups, and Azure Resources. Built with Pode (PowerShell HTTP server) running in Docker, with Entra ID OAuth 2.0 authentication.
docker pull lgosling/pim-activation
.env fileENTRA_TENANT_ID=your-tenant-id.onmicrosoft.com
ENTRA_CLIENT_ID=your-app-client-id
ENTRA_CLIENT_SECRET=your-app-client-secret
ENTRA_REDIRECT_URI=https://{FQDN}/api/auth/callback
Replace
{FQDN}with your actual domain name (e.g.pim.corp.example.com).
mkdir -p certs
# Copy your CA-signed certificate:
cp /path/to/cert.pem certs/cert.pem
cp /path/to/key.pem certs/key.pem
docker run -d \
--name pim-activation \
--env-file .env \
-v ./certs:/etc/pim-certs:ro \
-v ./config:/etc/pim-config:ro \
-v pim-data:/var/pim-data \
-v ./logs:/var/log/pim:rw \
-p 443:8080 \
-p 80:8081 \
--dns 8.8.8.8 --dns 8.8.4.4 \
lgosling/pim-activation
Or use the docker-compose.yml from the GitHub repository.
Navigate to https://{FQDN} — you'll be redirected to Entra ID for authentication.
| Variable | Default | Description |
|---|---|---|
ENTRA_TENANT_ID | required | Entra ID tenant ID |
ENTRA_CLIENT_ID | required | App registration client ID |
ENTRA_CLIENT_SECRET | required | App registration client secret |
ENTRA_REDIRECT_URI | required | OAuth redirect URI |
HTTPS_PORT | 443 | Host port for HTTPS |
HTTP_PORT | 80 | Host port for HTTP (redirects to HTTPS) |
LOG_LEVEL | Information | Verbose, Debug, Information, Warning, Error |
SESSION_TIMEOUT | 3600 | Session duration in seconds |
INCLUDE_ENTRA_ROLES | true | Enable Entra ID directory roles |
INCLUDE_GROUPS | true | Enable PIM-enabled groups |
INCLUDE_AZURE_RESOURCES | false | Enable Azure resource roles |
INCLUDE_AUDIT_LOGS | true | Enable Entra audit log sync |
This container uses Alpine Linux. Due to a musl libc DNS issue, you must provide external DNS servers (--dns 8.8.8.8 --dns 8.8.4.4) or use the provided docker-compose.yml. Without this, API calls to Microsoft Graph will fail.
Full documentation, app registration guide, and architecture details are available on GitHub.
Content type
Image
Digest
sha256:44d0bba34…
Size
101.4 MB
Last updated
5 months ago
docker pull lgosling/pim-activation