Feb 10 2017
06:42 AM
- last edited on
Jan 14 2022
04:49 PM
by
TechCommunityAP
Feb 10 2017
06:42 AM
- last edited on
Jan 14 2022
04:49 PM
by
TechCommunityAP
Hi,
This is not a question.
I am writing this after being in contact with the product group, so that others can find this later without bothering them again :)
The invitedToGroups and invitedToApplications columns from CSV are not directly implemented in the invitations API, because equivalents already exists in the graph API under other endpoints.
For example to add a user to a group:
https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/group_post_members
And to add a appRoleAssignment to a user:
https://graph.microsoft.io/en-us/docs/api-reference/beta/resources/approleassignment
Hope this saves someone some time :)
Feb 10 2017 09:28 AM
Apr 27 2017 08:39 PM - edited Apr 27 2017 08:39 PM
Apr 27 2017 08:39 PM - edited Apr 27 2017 08:39 PM
Great find!
So how are you detecting that the user has accepted the invitation? As you can't add them to a group or application until they do.
I believe this is because they're not actually created in AzureAD until they complete the invitation process.
Thanks
Craig
May 01 2017 09:41 AM
May 11 2017 07:03 AM - edited May 11 2017 07:07 AM
Hi, I'm still actually interested in the answer to Craig's question.
"how are you detecting that the user has accepted the invitation?"
I have need to know whether a guest user has redeemed an invitation or not.
If they have redeemed, further communications should not talk about invitations, etc). If they have not yet redeemed, I should be sending a "did you miss our invite? here's another..".
With further thought, I think this data should be interesting in both the Graph API, and the Azure Portal..
May 11 2017 09:09 AM
Hi Craig - we will be exposing the redemption state in the APIs in the coming months. This is already available in the Azure Portal in the "Source" property. And you can resend the invitation from the portal.
May 11 2017 11:30 AM
May 11 2017 11:38 AM
Hi,
I believe you can actually implement this today, but in a bit of a "funky way".
When you send an invitation using the invitation API to a user that has already accepted the invite (you can of course set "send email" to false), the invite result will say "Accepted" (this is also true for auto redeem functionality), while if the user has not accepted the invite, it will say "Pending".
Marius
May 11 2017 12:21 PM
May 11 2017 12:39 PM
May 11 2017 01:29 PM
May 15 2017 08:07 AM - edited May 15 2017 08:14 AM
Hmm.. Does the Status attribute report back the redemption status at an application level(i.e the status of THAT invite) or an AAD Directory level?
Suppose I have three applications (A,B,C), and I invite the user to two of them (A,B), and he accepts the invitation to only one of them (A).
Will the status report back "Completed" for all three? or will it only be "Completed" for Application A, and "In Progress" for Application B?
I'm worried that I have to do a "fakeInvite" check against every application the user has access to, looking for at least one status of "Completed".
I think my users only have 3-4 applications, but a 'Redemption flag' for that user that covers all applications (user has redeemed at least one invitation) is what I'm really looking for.
May 30 2017 09:27 PM
Jul 06 2017 08:07 AM
Thanks for your questions!
We will be working on exposing the invitation status through the Graph API.
In the meantime, we are also going to make this information available in the audit logs - so that you can write queries against the Audit APIs to get the invitation status of your B2B users.
Currently, the only way to reliably get that is through the presence of AltSecID for the B2B users - which is only exposed through the first party (private) APIs.
Aug 22 2017 02:36 AM
Oct 06 2017 05:23 AM
Oct 17 2017 06:00 AM
Please note that this is the main reason we continue to use the classic azure portal. (and we will continue to need the classic portal because there is no way to see remption status in the new portal).
When will redemption status be visible?
Feb 23 2018 12:02 PM