BotPermission is the intermediate relationship that connects a bot to the Dynamics 365 identities and security roles allowed to invoke or manage it. In practice, it is the control point that turns role assignments into bot access, making human and non-human callers visible in the same governance model.
Expanded Definition
BotPermission is the authorization relationship that determines which Dynamics 365 identities and security roles can invoke, administer, or otherwise control a bot. It is not the bot itself, and it is not a human access role in isolation. The term matters because it turns a role assignment into an operational permission boundary that can be reviewed, revoked, and audited.
In NHI governance, BotPermission sits between identity proofing and runtime access. That makes it materially different from a simple app setting or a coarse role label. A bot may be technically deployed, but without the correct permission relationship it cannot be safely managed or called. Definitions vary across vendors because some product teams describe bot access through application roles, while others model it as delegated control or service authorization. In practice, the governance question is the same: who can act on the bot, under what role, and with what scope? For a standards lens on authorization and least privilege, the NIST SP 800-53 Rev 5 Security and Privacy Controls framework remains the closest external reference point.
The most common misapplication is treating BotPermission as a static admin toggle, which occurs when organisations grant broad roles to make troubleshooting easier and then leave those roles in place after deployment.
Examples and Use Cases
Implementing BotPermission rigorously often introduces administrative friction, requiring organisations to weigh fast operational access against tighter oversight and fewer standing privileges.
- A Dynamics 365 support bot is restricted so only a small set of service operators can invoke it, while developers can update code but not trigger production actions.
- An automation bot that reads customer records is paired with a dedicated role that can be reviewed independently from the human user roles in the tenant.
- A business unit can administer its own bot lifecycle, but cannot grant itself broader permissions to sensitive environments without security approval.
- After an incident, investigators compare bot invocation logs with role memberships to determine whether access came from an intended operator or an overprivileged account. Related patterns are discussed in the Ultimate Guide to NHIs — Key Challenges and Risks.
- Where bot access is federated across tools, the permission model is aligned to broader identity controls rather than ad hoc exceptions, echoing guidance in the OWASP Non-Human Identity Top 10.
These use cases show that BotPermission is most valuable when access must be attributable, revocable, and separated by duty, not merely enabled for convenience.
Why It Matters in NHI Security
BotPermission is a governance control point because excessive or poorly understood permissions can turn a harmless automation into a high-impact identity path. When bot access is granted to too many roles, organisations lose the ability to prove who can manage the bot, who can invoke it, and whether those permissions are still justified. That risk is amplified in NHI environments, where service accounts, API keys, and agentic workflows already expand the attack surface. NHIMG research shows that 91.6% of secrets remain valid five days after notification, underscoring how slow revocation can leave overbroad bot permissions exposed long after a change or incident.
This term also matters because bot governance often crosses human and non-human identity boundaries. If a bot can be managed by users with generic admin roles, those users become indirect control points for automation that may touch customer data, financial workflows, or privileged administrative actions. The same problem appears in real incidents where AI-facing systems were used as an access path, as seen in the Meta AI Instagram Account Takeover and the Replit AI Tool Database Deletion cases. Organisations typically encounter BotPermission as a priority only after an unwanted bot action, privilege escalation, or post-incident review makes the missing permission boundary operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 | Covers overprivileged NHI access and weak authorization boundaries for bots and service identities. |
| NIST CSF 2.0 | PR.AC-4 | Addresses access permissions management and least privilege for identity-controlled resources. |
| NIST SP 800-63 | Provides digital identity assurance concepts that inform who should be trusted to manage bot access. | |
| NIST Zero Trust (SP 800-207) | Zero Trust limits implicit trust and requires explicit authorization for every bot access path. | |
| OWASP Agentic AI Top 10 | A-03 | Agentic systems require bounded tool and action permissions to prevent misuse and escalation. |
Map bot administration and invocation rights to least-privilege reviews and periodic access recertification.
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org