s365b.modules.entra.sources =========================== .. py:module:: s365b.modules.entra.sources .. autoapi-nested-parse:: What the Entra module reads from Microsoft Graph. Each :class:`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 :class:`Source` s. Attributes ---------- .. autoapisummary:: s365b.modules.entra.sources.Item s365b.modules.entra.sources.USER_FIELDS s365b.modules.entra.sources.GROUP_FIELDS s365b.modules.entra.sources.CATEGORIES s365b.modules.entra.sources.BY_ID Classes ------- .. autoapisummary:: s365b.modules.entra.sources.Link s365b.modules.entra.sources.Source s365b.modules.entra.sources.Category Module Contents --------------- .. py:data:: Item .. py:data:: USER_FIELDS :value: 'id,userPrincipalName,displayName,givenName,surname,mail,mailNickname,accountEnabled,userType,job... .. py:data:: GROUP_FIELDS :value: 'id,displayName,description,mail,mailEnabled,mailNickname,securityEnabled,groupTypes,visibility,m... .. py:class:: Link A related list stored inside each item, e.g. a group's members. :ivar field: Key the list is stored under (prefixed with ``_`` so it cannot clash with Graph properties). :ivar url: URL template; ``{id}`` is the item's ID. :ivar when: Only fetch for items where this returns True. .. py:attribute:: field :type: str .. py:attribute:: url :type: str .. py:attribute:: when :type: collections.abc.Callable[[Item], bool] .. py:class:: Source One Graph collection (or single object) read by a category. :ivar key: Unique source ID; the item key of singletons. :ivar item_type: Item type of what it yields. :ivar label: Shown as the item's folder in the browse view. :ivar url: Graph URL. :ivar params: Query parameters. :ivar singleton: The URL returns one object, not a collection. :ivar links: Related lists fetched for each item. :ivar keep: Only store items where this returns True (all items are still used for names, e.g. built-in role definitions). :ivar meta: Item fields copied to the searchable metadata. .. py:attribute:: key :type: str .. py:attribute:: item_type :type: str .. py:attribute:: label :type: str .. py:attribute:: url :type: str .. py:attribute:: params :type: dict[str, str] | None :value: None .. py:attribute:: singleton :type: bool :value: False .. py:attribute:: links :type: tuple[Link, ...] :value: () .. py:attribute:: keep :type: collections.abc.Callable[[Item], bool] .. py:attribute:: meta :type: tuple[str, ...] :value: () .. py:class:: Category A protected object of the Entra module. :ivar id: Category ID (the protected object's external ID). :ivar label: Display name. :ivar description: One line for the UI. :ivar sources: What it reads, in order. .. py:attribute:: id :type: str .. py:attribute:: label :type: str .. py:attribute:: description :type: str .. py:attribute:: sources :type: tuple[Source, ...] :value: () .. py:data:: CATEGORIES :type: tuple[Category, ...] .. py:data:: BY_ID