final class RolesService

Service for managing user roles based on Microsoft 365 group membership.

Methods

__construct(GraphService $graphService, ConfigFactoryInterface $configFactory, LoggerChannelFactoryInterface $loggerFactory)

Constructs a RolesService object.

void
clearCache()

Clears cached data to force fresh retrieval.

void
handleRoles(UserInterface $account)

Updates user roles based on Microsoft 365 group membership.

Details

at line 59
__construct(GraphService $graphService, ConfigFactoryInterface $configFactory, LoggerChannelFactoryInterface $loggerFactory)

Constructs a RolesService object.

Parameters

GraphService $graphService
ConfigFactoryInterface $configFactory
LoggerChannelFactoryInterface $loggerFactory

at line 292
void clearCache()

Clears cached data to force fresh retrieval.

Return Value

void

at line 76
void handleRoles(UserInterface $account)

Updates user roles based on Microsoft 365 group membership.

Parameters

UserInterface $account

The user account to update.

Return Value

void

Exceptions

EntityStorageException