Skip to content

Test-Assessment-21868 "Guests don't own apps in the tenant" is very inefficient #1497

Open

Description

@ManishCISSP

Test-Assessment-21868 makes one API call per application AND one API call per service principal to fetch owner information. In a large tenant, when there are hundreds of apps/SPs, this is the only test which takes hours to run.

Making API calls for each application / service principle is an anti-pattern. A better approach is to store the required information in the first export phase (Export-ZtTenantData) and then all these API calls can be replaced with just a single database query.

Activity

  1. astaykov commented on Aug 17, 2026

    @astaykov
    Collaborator

    Agree. We will review possible optimization given the information already stored in DuckDB.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions