Extend AD User Details

Luca_LandiLuca_Landi Customer IT Monkey ✭
Hi,
I need to display "manager" AD field in the 'user details View' (/user/UserRelatedInfoById/<userdGiudID>) or others infos as, for example, the "Account Expiration date".

The first info i see that is not directly contained in the AD User class, but I don't know how to obtain this using Cireson API or custom extension (writing into custom.js).

Can you help me?

Note: I'm using Portal V6.

Thanks,
Luca

Answers

  • Brett_MoffettBrett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭
    Are you wanting to extend the User Details form that appears when you click the (i) icon next to the user?
    If this is the case then this is not easy and is better to actually replace this screen with a custom one.

    I have seen several customers do this to great affect.

    I know there is discussion about re-working this form in a future release (Maybe v8) but I have not seen that confirmed at this stage. (Maybe a good candidate for a feature request)
  • Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭

    Correct me if I'm wrong, but I don't think it'd be possible to add additional AD fields to this view; fields are limited to what the AD Connector pulls from AD, and that aspect isn't configurable. As long as it's a property of the User CI object it should be available.

    Brett_Moffett, can you share the method for adding fields? I suppose it depends on whether the Manager relationship is part of the type projection used for this form.

  • Brett_MoffettBrett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭
    I show how to extend the AD User and Group class in my blog post here: https://systemcenternoise.wordpress.com/2015/02/18/scsm-vip-user-solution/

    You can extend the class as much as you want, but you can't change the connector to bring additional details in from AD. For that you have to find another way to drag the information in, such as the Asset Import Tool.

    Adding fields to the AD User form in the portal is a different matter and as I shared in the last comment to this post, I wouldn't bother, but rather replace the form with a custom one.

    One of the community members I know has done this in the past, but I'm not sure if he is willing to share it yet.
  • Luca_LandiLuca_Landi Customer IT Monkey ✭
    Thank you all for answers.

    The VIEW that I would change is not quite the form that opens when I click the icon (i) near to a user name, but that which is achieved in the same form when you click the button "View More Details" that send to link: http://example-portal.com/user/UserRelatedInfoById/299d5abc-b8a2-7a39-8ef1-2f96f04cc252 s (link invented)

    In SCCM I have already imported mentioned AD infos that I need through the special connector, and I can use them into SCSM or Orchestrator Runbooks.

    I have already built custom code in VisualStudio to extend the capabilities of the portal in order to handle the display/hide of RequestOffering, using some permits of the logged user instead of the Service Offering permission, and it works well. But I had to change a line (only one) of the code of an original Cireson portal View to insert my wrapper and the thing I did not like much.

    Apart from making a new custom page to get my goal, there are some APIs or examples  to suggest from which to take inspiration?

    Thanks

Sign In or Register to comment.