s365b.modules.entra.sources

What the Entra module reads from Microsoft Graph.

Each Category becomes one protected object (so a job can select, say, only Conditional Access, and a missing licence for one category does not fail the others). A category reads one or more Source s.

Attributes

Classes

Link

A related list stored inside each item, e.g. a group's members.

Source

One Graph collection (or single object) read by a category.

Category

A protected object of the Entra module.

Module Contents

s365b.modules.entra.sources.Item[source]
s365b.modules.entra.sources.USER_FIELDS = 'id,userPrincipalName,displayName,givenName,surname,mail,mailNickname,accountEnabled,userType,job...[source]
s365b.modules.entra.sources.GROUP_FIELDS = 'id,displayName,description,mail,mailEnabled,mailNickname,securityEnabled,groupTypes,visibility,m...[source]

A related list stored inside each item, e.g. a group’s members.

Variables:
  • field – Key the list is stored under (prefixed with _ so it cannot clash with Graph properties).

  • url – URL template; {id} is the item’s ID.

  • when – Only fetch for items where this returns True.

field: str[source]
url: str[source]
when: collections.abc.Callable[[Item], bool][source]
class s365b.modules.entra.sources.Source[source]

One Graph collection (or single object) read by a category.

Variables:
  • key – Unique source ID; the item key of singletons.

  • item_type – Item type of what it yields.

  • label – Shown as the item’s folder in the browse view.

  • url – Graph URL.

  • params – Query parameters.

  • singleton – The URL returns one object, not a collection.

  • links – Related lists fetched for each item.

  • keep – Only store items where this returns True (all items are still used for names, e.g. built-in role definitions).

  • meta – Item fields copied to the searchable metadata.

key: str[source]
item_type: str[source]
label: str[source]
url: str[source]
params: dict[str, str] | None = None[source]
singleton: bool = False[source]
keep: collections.abc.Callable[[Item], bool][source]
meta: tuple[str, ...] = ()[source]
class s365b.modules.entra.sources.Category[source]

A protected object of the Entra module.

Variables:
  • id – Category ID (the protected object’s external ID).

  • label – Display name.

  • description – One line for the UI.

  • sources – What it reads, in order.

id: str[source]
label: str[source]
description: str[source]
sources: tuple[Source, ...] = ()[source]
s365b.modules.entra.sources.CATEGORIES: tuple[Category, ...][source]
s365b.modules.entra.sources.BY_ID[source]