Skip to content

Azure

Trustle uses the same application registration you create in your Microsoft Entra ID (formerly Azure AD) tenant to analyze your Azure environment. The app registration lets Trustle analyze user access patterns, and an Azure custom role lets Trustle analyze and manage Azure RBAC role assignments within a subscription.

  • Complete the Microsoft Entra ID app registration setup first. It covers creating the app registration, the client secret, and the Microsoft Graph API permissions Trustle needs.
  • Owner or User Access Administrator access on the Azure subscription you want Trustle to analyze, so you can create and assign a custom role.
  • The tenant ID, application (client) ID, and client secret from the Microsoft Entra ID app registration.

This lets Trustle analyze and manage Azure RBAC roles within a subscription.

  1. Navigate to the subscription in Azure.
    1. Search for Subscriptions in the search bar.

Azure portal search bar with Subscriptions in the results

  1. Click the subscription you want.
  2. Add a custom role.
    1. In your subscription, click Access control (IAM), then Add a custom role.

Subscription Access control (IAM) page with Add a custom role option

  1. Enter a name like Trustle IAM Manager, click Start from scratch, then click Next.

Create a custom role wizard with a name entered and Start from scratch selected

  1. Click Add permissions.

Custom role permissions tab with the Add permissions button

  1. Search for and select Microsoft.Authorization.

Add permissions search results filtered to Microsoft.Authorization

  1. Select the permissions in this table.

Microsoft.Authorization permissions list with the required permissions selected

  1. Search for and select Microsoft.Resources, then select its permissions in the table.
  2. Search for and select Microsoft Azure Monitor, then select its permission in the table.
  3. Search for and select Microsoft.Management, then select its permissions in the table.
  4. Click Add, Review + create, Create, then OK.
Action Access
Microsoft.Authorization/roleAssignments Read, Write, Delete
Microsoft.Authorization/roleAssignmentScheduleInstances Read
Microsoft.Authorization/roleDefinitions Read
Microsoft.Authorization/roleEligibilitySchedules Read
Microsoft.Authorization/roleEligibilityScheduleInstances Read
Microsoft.Resources/subscriptions Read
Microsoft.Resources/subscriptions/resourceGroups Read
Microsoft.Insights/eventTypes/values Read
Microsoft.Management/managementGroups Read
Microsoft.Management/managementGroups/descendants Read
Microsoft.Management/managementGroups/subscriptions Read
  1. Assign the custom role.
    1. Go back to the subscription IAM page, click Add, then Add role assignment.
    2. Select Privileged administrator roles.
    3. Search for Trustle IAM Manager, click it, then click Next.
    4. Click Select members and add the app registration.
    5. On the Conditions tab, under What user can do, select Allow user to assign all roles (highly privileged).
    6. Click Review + assign twice.
    7. When this completes, the Access control (IAM) page shows the app registration with the new custom role.

This custom role gives Trustle read access to role definitions, subscriptions, resource groups, management groups, and Azure Monitor event data, plus read, write, and delete access to role assignments (except privileged administrator roles). It complements the Microsoft Graph API permissions for a comprehensive analysis of user privileges.

Step 2 (optional): Test and verify configuration

Section titled “Step 2 (optional): Test and verify configuration”

Confirm the subscription-level role is configured correctly before entering credentials into Trustle.

  1. Search for Subscriptions in the search bar, then click the subscription name.
  2. Click Access control (IAM) in the left sidebar.
  3. Click Role assignments next to Check access.
  4. Search for the name of your integration (Trustle-Integration) and confirm it has the Trustle IAM Manager role.

For app registration, client secret, and Microsoft Graph API permission checks, see Microsoft Entra ID.

Once setup is complete, enter the following information into Trustle. These are the same values you gathered in the Microsoft Entra ID app registration.

  1. Tenant ID (Directory ID)
  2. Application (Client) ID
  3. Client Secret value

After you connect, Trustle:

  1. Imports group memberships and role assignments for all accounts (initial discovery).
  2. Analyzes 30 days of activity and identifies unused permissions and users.
  3. Populates the IAM dashboard with the findings.
  4. Runs periodic imports and analysis, and shows any changes in these findings (ongoing monitoring).

Common issues:

  • Permission consent errors: make sure you’re using a Global Administrator account.
  • Missing client secret: this value is shown only once. Recreate it if lost.
  • API permission: verify all permissions are Application type, granted, and approved.

Contact the Trustle technical support team with specific error messages. Provide:

  • Your tenant ID and application ID for faster troubleshooting.
  • Screenshots or audit log samples, if available.
  • Error messages or descriptions.