# Hoe kan ik de eigenaar van uitnodigingslinks wijzigen?

**URL:** https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771
**Category:** Support
**Tags:** invites
**Created:** [11 maart 2022 om 19:39 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771 "2022-03-11T19:39:49Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [11 maart 2022 om 19:39 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/1 "2022-03-11T19:39:49Z")

</div>

> [@(Superseded) Multiple Use Invite Links](https://meta.discourse.org/t/superseded-multiple-use-invite-links/154325/1):
>
> ![Screen Shot 2020-06-09 at 23.14.58](https://global.discourse-cdn.com/meta/original/3X/a/a/aa3a523a3d22510f33557eac8c60f170a441e698.png)
> 
> Screen Shot 2020-06-09 at 23.14.581350×1210 74.7 KB

Please I would like to know how to change the ‘You were invited by:’ user. I want it to be an invitation from the system because it doesn’t represent one individual. The invitation is from the community. This is very critical. Thank you! (:

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11 maart 2022 om 19:53 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/2 "2022-03-11T19:53:41Z")

</div>

> [@gassim](#):
>
> I want it to be an invitation from the system

You can impersonate `system` from the /admin/user page.

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [11 maart 2022 om 19:56 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/3 "2022-03-11T19:56:51Z")

</div>

It actually hides the impersonate for system and the only thing you can see is:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/e/4e3a2caef298a6230232eff7954bbb305e9da859.png)

Maybe there’s something I can change in the settings, thanks!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11 maart 2022 om 20:02 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/4 "2022-03-11T20:02:10Z")

</div>

Hmm. Where are you hosted? If it’s with [Discourse.org](http://Discourse.org) then you might email support. I tested on a recently upgraded self-hosted install before I made the recommendation and my screen looks like:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/6/966c7fdd41d0a73b5294d756b8be0acb472d6630.png)

And then I clicked it and became system. I didn’t create an invite, though.

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [11 maart 2022 om 20:04 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/5 "2022-03-11T20:04:01Z")

</div>

Thanks! I will contact the responsible person for these site settings. 👍

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11 maart 2022 om 20:04 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/6 "2022-03-11T20:04:58Z")

</div>

If you’re a moderator and not an admin, then that explains it. Of course you can’t impersonate a user with more privileges than you have.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [11 maart 2022 om 20:08 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/7 "2022-03-11T20:08:26Z")

</div>

I think its only the sysadmin/developer email in the app.yml that can impersonate the system? I’ve just given admin rights to a test user, and they don’t get the impersonate option for system.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11 maart 2022 om 20:19 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/8 "2022-03-11T20:19:37Z")

</div>

> [@JammyDodger](#):
>
> I think its only the sysadmin/developer email in the app.yml that can impersonate the system

Sounds right. I forget that developer is different, as it’s most often the way that I get admin access.

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [11 maart 2022 om 20:22 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/9 "2022-03-11T20:22:08Z")

</div>

Okay thank you, I will look into that! I appreciate your help! 🙏

So if I’m able to impersonate System, will I be able to change the owner of the invite links? It’s better than creating the links all over again and adding them back to context!

Thanks in advance!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [11 maart 2022 om 21:41 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/10 "2022-03-11T21:41:53Z")

</div>

> [@gassim](#):
>
> So if I’m able to impersonate System, will I be able to change the owner of the invite links?

No. You would be able to create links as System. I don’t think that you can easily change their owner. Given that I’m right, you’d need to do it at the rails console. If there are many of them, then you’d need to see [Administrative Bulk Operations](https://meta.discourse.org/t/administrative-bulk-operations/118349) for some clues on how to do some things in bulk. I doubt that there’s an exact example, though.

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [12 maart 2022 om 19:20 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/11 "2022-03-12T19:20:03Z")

</div>

Thanks! (:

I think it’d be a good and helpful #Contribute > Feature if we could change the owner (just like when we are allowed to change post ownership).

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [16 maart 2022 om 06:20 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/12 "2022-03-16T06:20:09Z")

</div>

Hi Gassim! Can you tell us some more about your use case? How are you sharing these invites? The idea behind “ownership” of invites is that there is trust between the inviter and the person they are inviting, which helps to build the community. The inviter also is able to monitor their pending invites and resend invites as needed, is notified when their invites are accepted, and also gets credit for accepted invitations.

If you don’t want all this, then I’d suggest you change your admin settings to allow new users to sign up directly. Or I guess you could sign up as a user representing the community that you are allowed to impersonate who is not `system`.

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [27 maart 2022 om 19:43 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/13 "2022-03-27T19:43:55Z")

</div>

> [@tobiaseigen](#):
>
> Or I guess you could sign up as a user representing the community that you are allowed to impersonate who is not `system` .

Thanks @tobiaseigen! I ended up choosing this option.

> [@tobiaseigen](#):
>
> Can you tell us some more about your use case? How are you sharing these invites? The idea behind “ownership” of invites is that there is trust between the inviter and the person they are inviting, which helps to build the community.

Thanks for your questions! I explained more details about the use case in the topic: [Invite limit to unlimited!](https://meta.discourse.org/t/invite-limit-to-unlimited/222106); however, the option to change ownership is because we’re inviting course participants to the discussion forum and the community/course…etc doesn’t represent one individual so ‘Person invited you to join the discussion forum’ doesn’t represent the purpose of the invitation.

In short, I didn’t know it was going to say ‘person invited you’ because I used Admin, so I thought it would say the site invited you… and then when I was testing I saw that message and now I want to change the ownership of the links instead of having to create links and replace them in course content all over again! (:

I hope I clarified the use case well! It’s still being tested and thank you so much for your support.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [27 maart 2022 om 20:43 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/14 "2022-03-27T20:43:05Z")

</div>

Reading your use-case:

> [@Use invite system to invite course participants to topic in secure category](https://meta.discourse.org/t/use-invite-system-to-invite-course-participants-to-topic-in-secure-category/222106/1):
>
> - Student enrolls in the course
> - In course intro, they are introduced to the forum (invite link for them to join the forum)
> - After joining using the invite link they are added to the course specific private category ‘group’ (to be able to see the private category for discussion topics) and are redirected to the discussion topic related to the course
> - Chapter 2, Chapter 3…etc each has invitation links which will direct participants to a related topic in the private category. If they don’t have an account or are signed out, it will ask them to join/login first i.e. the way invite links works, and this is good because we can’t assume that all participants will necessarily join from intro but this method ensures that the process to join the discussion forum is possible at any stage during the course which is why invite links are used all over the course.

…I wanted to share a similar experience I had, where we needed to leave a link in documentation that got people to the correct, private category when they followed it. And given how the system works…

> [@tobiaseigen](#):
>
> The idea behind “ownership” of invites is that there is trust between the inviter and the person they are inviting, which helps to build the community.

…didn’t work for us, since it was a call to action for the residents of a city, making it unreasonable for us, per city guidelines.

I combined two features of Discourse:

1. User groups for permissions
2. Permalinks

When one links directly to a group they may request to join (per settings of that group), there is a “Request” button. If you visit [https://meta.discourse.org/g/chat-testers](https://meta.discourse.org/g/chat-testers) you’ll see something similar:

 ![Screenshot 2022-03-27 at 13-36-00 Members - chat-testers - Discourse Meta](https://global.discourse-cdn.com/meta/original/3X/5/2/52092d17052df7909d2ca321b16e7d8286d1dd5e.png)

Pressing the “Request” button will take the users into the process of signing up/joining that group.

Because we didn’t want to send links that looked like `https://example.org/g/neighborhood`, we opted to send redirects. And because we wanted both control over them (city privacy policies, which are great!), as well as being able to update the link if needed, we used the native permalink settings in Discourse, available at `/admin/customize/permalinks`.

 ![Screenshot 2022-03-27 at 13-27-46 Admin - talkgroup](https://global.discourse-cdn.com/meta/original/3X/8/6/863dee8bb15c668060033186673a12d50897a031.png)

Then in our docs we leave a message such as:

> Thanks for you interest in this course, to complete the lessons, please join Course 1 at [https://forums.example.edu/student-invite](https://forums.example.edu/student-invite).

Which with the permalink redirection in the screenshot would load `https://forums.example.edu/g/Students`, and proceed to onboard the student.

* * *

I enjoyed this method, as it gave our mods similar tools to onboard groups, while keeping the invite system flexible. 🙂

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [27 maart 2022 om 20:54 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/15 "2022-03-27T20:54:16Z")

</div>

Thank you so much @maiki for sharing! I think your idea is very great; ~~~however, my question is if the ‘request to join’ will appear for a user who has not yet signed in to the forum (anonymous users)?~~ And if it appears, does it redirect them to the topic after they request to join? **update:** I tested it but it doesn’t redirect users to the specific topic.

The other issue is that participants will have to wait until their request is accepted. Did you automate that? (I think this is valid in the settings, right?) **edit:** I checked and there is no way to automate acceptance to the group (in the same way as the invite links do) and this means that participants will have to wait until a group owner accepts their request but for courses that are international we can’t guarantee being 24 hours present to immediately accept requests and there is no way to make participants wait!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [27 maart 2022 om 21:21 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/16 "2022-03-27T21:21:48Z")

</div>

> [@gassim](#):
>
> I checked and there is no way to automate acceptance to the group

There is an option that’s something like “allow users to join and leave the group freely”. But meting it’s not available if the group is hidden.

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [27 maart 2022 om 21:26 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/17 "2022-03-27T21:26:45Z")

</div>

> [@pfaffman](#):
>
> But meting it’s not available if the group is hidden.

Thanks, but not only that the group must be visible it but doesn’t work with the option ‘request to join’.

It’s still an option to look at but the issue is this would work only if we can guarantee that course participants will sign up into the forum early on and using the first invitation!

Thanks!

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [27 maart 2022 om 22:18 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/18 "2022-03-27T22:18:52Z")

</div>

> [@gassim](#):
>
> And if it appears, does it redirect them to the topic after they request to join?

We pinned informative topics in the respective categories; in my use case we had complex subject matter to discuss, so we broke it into separate topics to make it easier to digest and discuss.

> [@gassim](#):
>
> Thanks, but not only that the group must be visible it but doesn’t work with the option ‘request to join’.

Correct, the method I prescribed doesn’t work as well with private groups…

🤔

Taking it all together… maybe you could _automate_ this workflow of yours, via [Discourse Automation](https://meta.discourse.org/t/discourse-automation/195773). Set it up so when a user joins a group, they get sent a PM with a link to the topic you want them to read…?

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [28 maart 2022 om 02:09 UTC](https://meta.discourse.org/t/how-to-change-owner-of-invite-links/220771/19 "2022-03-28T02:09:25Z")

</div>

> [@maiki](#):
>
> when a user joins a group, they get sent a PM with a link to the topic you want them to read

This is why I’m using invitation links because that’s what it is supposed to do:

1. Add user to private group
2. **Redirects** user to the topic post
