Renews all expired and expiring M365 eligibilities for the current user via the M365 Pulse Identity Hub. Use when the user wants to renew their access eligibilities.
Renew all expired and expiring M365 eligibilities for the current user.
Parse $ARGUMENTS for the following flags:
--help — print usage information and stop. No browser actions are taken.--list — only display the expired and expiring eligibilities without renewing anything. No flyouts, no clicks. Just report the list grouped by status and stop.--first — only process the first expired or expiring eligibility in the list, then stop.--name <value> — only process the eligibility whose name exactly matches <value>. If found but not expired/expiring, report it as skipped with its current status. If not found at all, report it as not found.--batch — renew all expired and expiring eligibilities at once using the bulk checkbox approach (check all rows, click Renew Eligibility, then click Renew in the flyout).--check-pending-manager — navigate to the Eligibility Dashboard, find the Pending section, and list all eligibilities with status PendingManagerApproval. No renewals are performed.--help takes priority over all other flags. --list takes priority over all remaining flags. --check-pending-manager takes priority over renewal flags. --name takes priority over --first. --batch is mutually exclusive with --name and --first.
--helpIf --help was passed, do not open any browser or perform any actions. Print the following and stop:
Usage: /m365-eligibility-renew [options]
Renews expired and expiring M365 eligibilities via M365 Pulse Identity Hub.
Options:
(no flags) Renew ALL expired and expiring eligibilities one by one
--list Display expired/expiring eligibilities without renewing
--first Renew only the first expired or expiring eligibility
--name <value> Renew the eligibility whose name exactly matches <value>
--batch Renew all expired/expiring eligibilities using bulk checkbox
--check-pending-manager List eligibilities pending manager approval (no renewals)
--help Show this help message
Priority: --help > --list > --check-pending-manager > --name > --first
Note: --batch is mutually exclusive with --name and --first.
--check-pending-managerIf --check-pending-manager was passed, skip all renewal steps entirely and do the following:
https://m365pulse.microsoft.com/idm/identity/access/Eligibilities/EligibilityDashboard
--check-pending-manager report).--check-pending-manager)After collecting and reporting the pending eligibilities list, open Microsoft Teams in a new browser tab and send a message to Muhammad Kapasi (alias: mukapasi):
Open a new tab and navigate to:
https://teams.microsoft.com
Wait for Teams to fully load — do NOT use a fixed time wait. Instead, wait for a specific UI element to appear (e.g. the "Chat" heading or the compose/filter toolbar). Take a screenshot to confirm Teams has loaded.
First, check for an existing chat with Muhammad Kapasi in the chat list on the left. Scan the visible chat entries for "Muhammad Kapasi". If found, click directly into that existing conversation — skip steps 4–6.
If no existing chat is found, click the "New items" button (the + icon with a dropdown arrow, in the Chat header toolbar). A dropdown menu will appear with options: New message, New channel, etc.
Click "New message" from the dropdown. A new compose view will open with a "To:" field.
In the "To:" field, type mukapasi (the alias) and wait for search results. Take a screenshot. From the results, click on Muhammad Kapasi — skip any result marked "(You)". If no result matches, try typing Muhammad Kapasi as a fallback.
Click into the message compose box at the bottom of the chat.
Compose the following message using the clipboard paste method for reliability:
mcp__playwright__browser_evaluate to write the full message text to the clipboard via navigator.clipboard.writeText(...), then use mcp__playwright__browser_press_key with Meta+v (macOS) or Control+v (Windows) to paste it into the compose box.Hi Muhammad, here's a summary of my eligibilities currently pending your manager approval:
- <eligibility name 1>
- <eligibility name 2>
...
Could you please approve them when you get a chance? Thanks!
Before sending, take a screenshot and show the user the composed message for confirmation. Ask:
"Ready to send this Teams message to Muhammad Kapasi. Shall I proceed?"
Use the Playwright MCP tool to navigate to:
Wait for the user to confirm. Once confirmed, press Meta+Enter (macOS) or Control+Enter (Windows) to send the message.
Take a screenshot to confirm the message was sent (compose box should be empty and message should appear in the chat).