Skip to content

feat(plugins): add 2 new methods : getAccounts and getIdentities - #708

Open
paulhenry46 wants to merge 1 commit into
bulwarkmail:mainfrom
paulhenry46:user-api-plugin
Open

feat(plugins): add 2 new methods : getAccounts and getIdentities#708
paulhenry46 wants to merge 1 commit into
bulwarkmail:mainfrom
paulhenry46:user-api-plugin

Conversation

@paulhenry46

@paulhenry46 paulhenry46 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Plugins often need context about the active user's environment to customize behavior, pre-fill form fields, or integrate external services with specific email identities. Currently, there is no API for plugins to inspect the user's available accounts or email identities.

These 2 new methods in API plugin enable that.

Changes

  • add user.getAccounts with new permission account:read. We don't give all the properties of Account Object, the most sensitive are not given.
  • add user.getIdentities with permission identity:read. There is no sensitive values, so we give all properties.

Related issues

Closes #

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactor / code quality improvement
  • Chore / dependency update / CI change

Checklist

  • I have read the Contributing Guide
  • My code follows the project's code style and conventions
  • I have run npm run typecheck && npm run lint and there are no errors
  • The build passes (npm run build)
  • I have tested my changes locally
  • I have added or updated documentation if needed
  • I have updated translations (locales/) if my changes affect user-facing text
  • I have included screenshots or a screen recording for UI changes

Screenshots / demo

Notes for reviewers

Copilot AI review requested due to automatic review settings July 29, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants