When I invite a user using the elements, I don't s...
# permit-saas
a
When I invite a user using the elements, I don't see the pending user show up in the list. I swear I saw this working before and I can see that UX in the user invitations inside permit itself. Is there a config for this somewhere that I'm missing?
a
Hi @Abe Clark, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
When you invite a user through Permit Elements, the invited user needs to be approved before they appear in the user list (1) . The documentation shows that after inviting a user, they receive an email with an approval link containing an
invite_code
parameter . To approve the invited user and have them show up in your list, you need to use the approve function with the invite code . For example, using the Python SDK:
Copy code
await permit.api.users.approve(  
 user_key="new_user",  
 email="<mailto:new-user@example.com|new-user@example.com>",  
 invite_code="ed32bc43e2194a80a5ef5e0339943b44"  
)
Once approved, the user will be created and synced with the chosen role . The preview mode in the Elements configuration won't actually create users - it's just for testing the UI

(2) ▾

. Make sure you're using the live embedded element in your application, not the preview. To help troubleshoot this issue, could you please provide: 1. Which Workspace / Project / Env you are using 2. What calls you are performing (as SDK code or CURL) 3. Which PDP version you are running 4. Any relevant logs from your PDP This will help our engineers investigate why the pending users aren't showing up as expected.
To learn more, see the sources I considered: [[1] Email Configuration and Templates](https://docs.permit.io/embeddable-uis/email-configuration-and-templates) [[2] Working with Permit Elements - Full Tutorial](

https://www.youtube.com/watch?v=xGYdDF65lkQ▾

)
a
Hey @Abe Clark , did the AI help you with your question or you have any additional question?
a
Didn't help. I am confused why when I invite a user, that user doesn't show up in the list of users in the elements in a pending state, like it does when you invite a user to permit. Or -- indicate pending invites in some other way. I swear I saw this working at one point but I can't figure out how to reenable
In the separate thread I'm also trying to figure out how to resolve an invite_code given the
approve
method doesn't exist in the node sdk nor is there any documentation I can find in the API docs https://permit-io.slack.com/archives/C02RTML2WNN/p1755587721765009?thread_ts=1755586781.430919&amp;cid=C02RTML2WNN
I'm expecting a UX like this or similar. Where the pending user is showed grey. I think I saw a version of this where the pending user was a small dropdown on the top or something. Can't quite remember when / how I saw this
Ah the other UX was the request flow. So not relevant. But I do expect to be able to see pending invites in these user lists
a
@Abe Clark we will be back to you 👍🏼
Also to the other thread
a
Thanks! Just wanna say -- this whole system is super cool and SOOO close to being helpful. Thanks for helping me work through the edges
t
Hey @Abe Clark, the user does not show up as "pending" in this list. The API call that the iframe makes is actually to create the user in the tenant with the role you select. Check out the screenshots.
a
@Thomas I just invited another email of mine. I have not opened the invite or clicked it. My greyed out user showed up immediately after sending the invite. This is the expected behavior from a user list component like this. Otherwise there is no UX feedback to tell the user that the request was successful nor to let them know that the request is still pending
However when I install the User Management widget, I do not see this when I invite users. I should.
t
right that is for members, not end users with elements
elements is for end users not members
a
Ok -- if I understand correctly, you're telling me that seeing pending invitations isn't currently supported by elements? If so -- I strongly recommend aligning that UX / enabling in elements. It's table stakes for this sort of interface
o
I believe @Shuvy Ankor can work on this when he's back from PTO tomorrow
a
Awesome thanks Or!