Skip to content

Commit

Permalink
Change AAD check endpoint to users
Browse files Browse the repository at this point in the history
  • Loading branch information
legra-ms authored Nov 5, 2021
1 parent 4efb43a commit 34864bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stormcollector/stormcollector/aad.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async def query_aad(ctx: Context, args: argparse.Namespace, backfills: dict = No
logger.info(f"Checking access for Microsoft Graph: {ctx.cloud['GRAPH']}")
token = await ctx.cred_async.get_token(f"{ctx.cloud['GRAPH']}/.default")
headers = {"Authorization": f"Bearer {token.token}"}
user_url = f"{ctx.cloud['GRAPH']}/beta/me"
user_url = f"{ctx.cloud['GRAPH']}/beta/users"

async with session.get(user_url, headers=headers) as graph_req:
graph_resp = await graph_req.json()
Expand Down

0 comments on commit 34864bf

Please sign in to comment.