Skip to main content
Participant
Dec 6, 2018 11:42 AM UTC
Answered

Adobe Connect API : convert guest to user

I am trying to extend a java integration which adds users into meetings/seminars in adobe. The problem that is being experienced is that the code was originally using "principal-list" to see if the user already existed or if a new one was needed, however, if a guest already existed with a given email address then a new principal could not be created. So I know I can change the lookup to use "report-bulk-users" which looks to include guests but I am not sure if there is a way of converting the guest to a user. I know it is possible through the Adobe Connect UI but not sure if it is exposed through API.

I have tried using principal-update with the principal-id of the guest along with type being user but that doesnt seem to work and from looking at the documentation type can only be used when creating a new principal.

This topic is closed to new replies. Start a new post to keep the conversation going.
JJ1779
JJ1779Correct answer
Adobe Employee
Dec 6, 2018 4:13 PM UTC

Hi there,

So /api/xml?action=report-bulk-users&filter-type=guest will get you all Guests on the system and their principal-id values.  (keep in mind this API hits the reporting DB, not production, so it can be delayed in it's data.)

Once you find the principal-id of the Guest you want to convert to a full user, you can use this API:

/api/xml?action=update-principal-type&principal-id=xxxxxxxx&type=user

- where xxxxxxxx = the actual principal-id of the guest you want to make a full user.

Response example:

<results>

<link type="text/css" id="dark-mode" rel="stylesheet" href=""/>

<style type="text/css" id="dark-mode-custom-style"/>

<status code="ok"/>

<update-principal-type type="user" principal-id="xxxxxxxx"/>

</results>

Let me know if this is what you are looking for.

(Full disclosure, the above API is undocumented but it is a 'normal' API access level and works just fine if you have Admin permissions on any Adobe Connect account).

5 replies

Participant
Dec 7, 2018 10:26 AM UTC

Thats worked perfectly thanks.

Is there a better approach for finding guests as oppose to "report-bulk-users" so that it doesnt have any time delay?

Translate
JJ1779
Adobe Employee
Adobe Employee
Dec 7, 2018 12:54 PM UTC

Sure.  Actually there is. Now that I think of it...

/api/xml?action=principal-list&filter-type=guest

If you do not append 'filter-type=guest', you just get back users and groups (and system groups).  If you FILTER on (type=guest), you will get back all the guests.  Remember the filter!

That should give you back the guests in real-time.  Try it out. Create a guest, then fire that API compared to report-bulk-users API.  You should see it in the principal-list and not in the other (until the reporting DB is updated).

Let me know.

Thanks.

Translate
Participant
Dec 7, 2018 1:45 PM UTC

That worked.


Thanks

Translate
JJ1779
Adobe Employee
JJ1779Correct answer
Adobe Employee
Dec 6, 2018 4:13 PM UTC

Hi there,

So /api/xml?action=report-bulk-users&filter-type=guest will get you all Guests on the system and their principal-id values.  (keep in mind this API hits the reporting DB, not production, so it can be delayed in it's data.)

Once you find the principal-id of the Guest you want to convert to a full user, you can use this API:

/api/xml?action=update-principal-type&principal-id=xxxxxxxx&type=user

- where xxxxxxxx = the actual principal-id of the guest you want to make a full user.

Response example:

<results>

<link type="text/css" id="dark-mode" rel="stylesheet" href=""/>

<style type="text/css" id="dark-mode-custom-style"/>

<status code="ok"/>

<update-principal-type type="user" principal-id="xxxxxxxx"/>

</results>

Let me know if this is what you are looking for.

(Full disclosure, the above API is undocumented but it is a 'normal' API access level and works just fine if you have Admin permissions on any Adobe Connect account).

Translate
Jorma_at_Knox
Legend
Dec 6, 2018 4:04 PM UTC

That is how I would do it. I'll do a quick test and see if I can get it to work.

Translate