Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 4 of 4
  1. #1

    Default Customizing user environment through HTTP API

    Hello,

    A number of user parameters cannot be handled globally by the OX server administrator (like default properties of the calendar, default view for the calendar, tags available, teams, etc.).

    In order to provide a consistent setup for all users, I'm trying to find a way to do this customization via a script that uses the HTTP API.

    My first question is: is the HTTP API the appropriate way to handle this or is there a better way to answer this need?

    If the HTTP API is the appropriate solution, is there any place where I could find an example of a script that can change a user preference?

    Thanks in advance,

    MichaŽl

  2. #2
    Join Date
    Feb 2007
    Posts
    253

    Default

    The HTTP API is probably not the right way, because it can only be used after logging in as a user. A better way for an admin would be to use the configuration interfaces, e. g. the --addguipreferences option of the command line tools. Oxpedia contains the details and an example at GUI_path. You don't need to specify the entire configuration, just the keys and values which should be different from the default.

  3. #3

    Default

    The --addguipreferences option is indeed the interface that I was looking for. Now, there are still something things that is not clear to me:

    - is there a hook in OX so that for example a changeuser command can be launched with --addguipreferences whenever a new user is created? That would let the administrator make sure that all users start with the same setup.


    In addition to the preference setup described above, all users should by default have their calendar visible to all other users. And here the --addguipreferences does not seem to answer this need. Any idea on the best approach to handle this?

    Kind regards,

    Michael

  4. #4

    Default

    An update on this topic.

    For those using oxldapsync, there is a way to define a set of default parameters for all users: you can add the --addguipreferences to the file mapping.*.conf (depending on your setup), for example (with the forthcoming categories in OX):

    Code:
    [...]
    access-usm                              = "on"
    access-global-address-book-disabled     = "off"
    addguipreferences = '/gui={"categories":{"local":[{"name":"Vacation","color":1},{"name":"Meeting","color":5}]}}'
    That will add 2 categories in each user profile modified by oxldapsync.

    I still need to find out a way to setup default visibility rights on user calendars.

    MichaŽl

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •