Update Profile Photo

Scenario

Update a user's profile photo in Microsoft Graph using the media-field component in a jig to select the photo. A Jigx REST function is used in the execute-entity action to make the update.

Resource links:

Required OAuth scope (least to most privilege):

User.ReadWrite User.ReadWrite.All

Update profile
Update profile

Examples and code snippets

General

name: ms-graph-demonstrator
title: MS Graph Demonstrator
description: A solution using Microsoft Graph APIs .
category: business

onLoad:
  type: action.execute-action
  options:
    action: full-sync

onRefresh:
  type: action.execute-action
  options:
    action: full-sync

expressions:
  today: =$substring($now(), 0, 10)
  todayStart: =$toMillis($today)
  weekdayStr: =$floor($todayStart/86400000)
  weekdayNum: =($weekdayStr + 4) % 7
  startOfWeek: =$todayStart - ($weekdayNum * 86400000)
  thisWeek: =$startOfWeek + 604800000
  next7: =$number($todayStart) + 604800000

tabs:
  home:
    jigId: home
    icon: home

Functions

MS Graph User function in GitHub.

Jigs

MS Graph User jig in GitHub.

See Also

Last updated

Was this helpful?