79822912

Date: 2025-11-18 00:51:39
Score: 3.5
Natty:
Report link

first off thanks for sharing your code. It gave me a headstart when I tried to do something very similar.

I found out (pretty much the same way you did) that the only attributes that can be passed into the call are displayname and email. There's a MS doco page on this:

https://learn.microsoft.com/en-us/graph/api/resources/invitation?view=graph-rest-1.0

I tried to update the jobTitle (an example) and found that I needed a separate API entrypoint to do this:

https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http

and then I found out I needed different permissions for my SPN to make the change, as opposed to invite a guest. For me, it was easier to do post-invite changes using our ServiceDesk software. However, in pure Python, that's the way I'd go.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2): thanks for sharing
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Romojo