assets_guardian.plugins.microsoft365.repository๏ƒ

Classes

Microsoft365Repository(client)

Port: Raw data repository access.

class assets_guardian.plugins.microsoft365.repository.Microsoft365Repository(client: MicrosoftGraph)[source]๏ƒ

Bases: object

Port: Raw data repository access.

Defines the contract for retrieving raw data from an external source (API, database, etc.).

async get_raw_assets_applications() list[dict[str, Any]][source]๏ƒ

Get all Azure AD app registrations

async get_raw_assets_licenses() list[dict[str, Any]][source]๏ƒ

Get all Azure AD subscribed licenses (SKUs)

async get_raw_group_members(group_id: str) list[dict[str, Any]][source]๏ƒ

Get members of a specific group.

async get_raw_groups() list[dict[str, Any]][source]๏ƒ

Get all groups (name and id)

async get_raw_licenses(user_id: str) list[str][source]๏ƒ

Get licenses assigned to a specific user.

async get_raw_roles() list[dict[str, Any]][source]๏ƒ

Get all Azure AD role definitions

async get_raw_roles_definitions() dict[str, str][source]๏ƒ

Get a mapping of role definition id to role name.

async get_raw_users() list[dict[str, Any]][source]๏ƒ

Get all users (name, id, email and company)