Check group membership towards azure in panel.serve

I am wondering if it is already built in or if it might be possible to check group membership towards azure using scope and some argument representing group-id in the ‘oauth_extra_params’ for ‘panel.serve’

import panel as pn
pn.extension()
panel_layout = pn.Row('## Test layout')

PORT = 5006
COOKIE_SECRET = '<cookie secret>'
CLIENT_SECRET = '<client secret>'
CLIENT_ID = '<client id>'
SCOPES = ["GroupMember.Read.All"]
GROUP_ID = ['<some azure group objectid>']

SERVE_CONFIGS = dict(
    port=PORT,
    show=True,
    autoreload=True,
    cookie_secret=COOKIE_SECRET,
    title='fetch group membership',
    scopes=SCOPES,
    oauth_provider='azure',
    oauth_secret=CLIENT_SECRET,
    oauth_key=CLIENT_ID,
    oauth_extra_params=dict(
        group_id=GROUP_ID,  # NOTE: Would something  simlar work?
    ),
)

pn.serve(panel_layout, **SERVE_CONFIGS)