Link an LDAP Backend User under an asset?


(Jamie Smith) #1

Is anyone aware of a way to link an LDAP Backend User asset under another asset (in my case a user group)?

 

The 'Join User Group for Session' Trigger action would do the trick but it only lasts for a limited time.

 

I also tried the JS API (see below) but I get an the error message 'Assetid supplied doesnt exist on the system'.

js_api.createLink({
    "parent_id": <parent_id>,
    "child_id": "%globals_user_assetid%",
    "link_type": 1,
    "link_value": "",
    "sort_order": 1,
    "is_dependant": 1,
    "is_exclusive": 0,
    "dataCallback": function (data) {
        console.log(data);
    }
});

Anyone have any thoughts?

 

Cheers,

 

Jamie


(Nic Hubbard) #2

Is anyone aware of a way to link an LDAP Backend User asset under another asset (in my case a user group)?

 

The 'Join User Group for Session' Trigger action would do the trick but it only lasts for a limited time.

 

I also tried the JS API (see below) but I get an the error message 'Assetid supplied doesnt exist on the system'.

js_api.createLink({
    "parent_id": <parent_id>,
    "child_id": "%globals_user_assetid%",
    "link_type": 1,
    "link_value": "",
    "sort_order": 1,
    "is_dependant": 1,
    "is_exclusive": 0,
    "dataCallback": function (data) {
        console.log(data);
    }
});

Anyone have any thoughts?

 

Cheers,

 

Jamie

 

What are you getting for the child_id? For LDAP users that is going to be pretty long string rather than just an ID, something that includes the DN and other info.


(Jamie Smith) #3

Hi Nic. A string with DN etc. is indeed what I'm getting (and was hoping to get) with the %globals_user_assetid% keyword. Matrix locates the asset if you paste it in the admin mode search box, but it looks like the JS API may not be set up to take an ID in that format.


(Nic Hubbard) #4

Hi Nic. A string with DN etc. is indeed what I'm getting (and was hoping to get) with the %globals_user_assetid% keyword. Matrix locates the asset if you paste it in the admin mode search box, but it looks like the JS API may not be set up to take an ID in that format.

 

Strange. I don't see anywhere in the JS API code that the LDAP ID string would be an issue.