# Possible for admins to create bookmarks for users?

**URL:** https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689
**Category:** Support
**Created:** [April 7, 2019, 4:15pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689 "2019-04-07T16:15:22Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [April 7, 2019, 4:15pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/1 "2019-04-07T16:15:22Z")

</div>

Is it possible to create bookmarks for other users?

I’m imagining creating a new user’s first bookmark to a particular topic we write to help new users get up to speed.

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [April 7, 2019, 5:29pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/2 "2019-04-07T17:29:15Z")

</div>

Oh! I just realized I can “impersonate” other users. So at the very least, I can go in as that user and create a bookmark for them.

So I have a solution. But I’m wondering if there’s a more elegant way?

---

<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: [April 7, 2019, 5:54pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/3 "2019-04-07T17:54:37Z")

</div>

You could create them with the API or make a plugin that would do it when the account was created

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [April 7, 2019, 5:55pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/4 "2019-04-07T17:55:44Z")

</div>

I’m using hosted Discourse, so I suspect I couldn’t install a custom plugin.

---

<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: [April 7, 2019, 7:00pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/5 "2019-04-07T19:00:48Z")

</div>

That would depend on your budget. 🙂

But one could probably come up with an API script that would get users from the previous day and add bookmarks for them.

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [April 7, 2019, 10:50pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/6 "2019-04-07T22:50:14Z")

</div>

hmmm, this is making me want to look at my membership/SSO provider’s docs carefully (I’m using [Memberful.com](http://Memberful.com)) I wonder if there’s a web hook I can have it call on new user registration… maybe I can connect that the Discourse.

Can someone point me to the API/webhook docs for Discourse that would create a bookmark for a user?

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [April 8, 2019, 4:45pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/7 "2019-04-08T16:45:17Z")

</div>

I’ve looked through the ReDoc site, thanks to [Discourse REST API Documentation](https://meta.discourse.org/t/discourse-api-documentation/22706)

I see there’s an obvious API endpoint for creating a bookmark, `/t/{id}/bookmark`

If I call that as an API user who is an admin, is there a way I can specify that I want to create a bookmark for a specific user?

( The goal here is to call this API soon after a new user is created (by the SSO provider) to inject a specific bookmark for that new user. )

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [April 8, 2019, 4:49pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/8 "2019-04-08T16:49:23Z")

</div>

> [@craigconstantine](#):
>
> If I call that as an API user who is an admin, is there a way I can specify that I want to create a bookmark for a specific user?

I’m pretty sure you need to call that endpoint with the username of the user, but use the “All Users” api key.

---

<div class="post-metadata">

### Author: ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)
#### Post date: [April 8, 2019, 4:55pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/9 "2019-04-08T16:55:57Z")

</div>

Rats, I was afraid of that.

All I have on the SSO provider’s side is the ability to specify a webhook URL to call upon account creation. I’d have to build a ‘glue’ web site that received their webhook call, looked in their payload for the username it chose/created, and then made the Discourse API call with the one parameter being all that’s different.

Oh. That makes me wonder if I can make something like IFTTT do that…

…yeup. Looks like the IFTTT Platform service is exactly for this.

`*tosses idea on huge pile of things to hire someone to do*`

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 8, 2019, 4:56pm UTC](https://meta.discourse.org/t/possible-for-admins-to-create-bookmarks-for-users/113689/10 "2019-05-08T16:56:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
