IT Monkey will place code here as examples of what Cireson's consulting team has to offer as well as examples for public consumption to benefit the Microsoft System Center community as a whole.
Cireson's support team has no information on these projects outside of what you have available and will not provide support for these enhancements, extensions, and scripts.
Dont forget to checkout solutions uploaded by our customers, partners and community members here.
I've used @Stefan_Henseler customization from github, but it is not the solution.
Is there a possibility to display the Software/Hardware/User option on list only for specific users or groups?
Is there a possibility, that in search top menu, normal users could have only standard options (WorkItems, KnowledgeBase and ServiceCatalog). Search for Hardware Items, Software Item and Users menu will be avaible ony for Analitycs or Asset Managers?
For any user, you can check to see if they are an administrator by using "session.user.IsAdmin" . Similarly, you can check for analysts and asset managers with "session.user.Analyst" and "session.user.AssetManager". See attached ss_01 for screenshot.
With a little bit of additional scripting and the GetUsersGroups API call, you can check the current user's AD group membership as well. And if they are a member of certain AD groups, then either show or hide the categories. This API call is done in the attached js file.
Basically, you'd select "User", enter something "Smith" and either if you click on the magnifying glass or hit enter capture that and redirect to another URL.
Any advice from the gurus?
Many thanks for sharing that solution! We totally love it.
Is there any possibility (code) to set "Work items" as default search category?
After adding this Asset Search App the search category is automatically being set to "Hardware Asset" which is not very convenient for us, because we more use the workitem search.
On the "custom_InitSearch.js"-file I've seen the line:
// set Hardware Asset search as default if user is hardware asset manager
Can we change it by editing this line?
Thanks and best regards
Comment out this section to remove default to Asset Search in the initSearch.js file.:
Or you can delete.
I'll report back if we find out anything else new.
maybe the following will help:
returned field names are all in uppercase: https://support.cireson.com/Problem/Edit/PR79162/
Anybody still using this vs Global Search? I've successfully converted this to an odata search and just looking to see if anyone is interested.
Hi Justin, we are still using this and would be interested in an odata version.
Yes we also still use mostly because that you don`t have to input an exact search string searching for an Hardware it only requires a part of it.
example ABCDE1234 you can find the hardware by just searching for 1234 and it is very fast