0 votes

Can you help me with writing a script that I could use to check for an existing Lync account? Or might there be any plans to build in a condition for that?

Thanks!
Ryan

by (920 points)
0

Hello,

Yes, sure, we've assigned our script guys to write a script for you.

As for a built-in condition, could you briefly describe how are you going to use it? We didn't make this condition initially because we didn't see any practical value in doing it.

0

Hello,

Here you go:

$Context.ConditionIsMet = $Context.TargetObject.IsLyncEnabled

The script returns True if the user is enabled for Lync. For more details, see the following SDK article: http://www.adaxes.com/sdk/?SampleScript ... abled.html.

0

Wonderful, thank you!

I'm using this as part of a "after user update" business rule. I'm trying to catch any users that don't have a lync enabled for one reason or another. If I don't use a condition to check for lync account, and the user already has one then I get a warning. I'd like to do the error checking in the background using a condition. The less warnings that popup, the happier my users are!

Thanks again!
Ryan

0

Hello Ryan,

We decided not to implement a built-in condition for now, but thanks for the info and for your suggestion.

Please log in or register to answer this question.

Related questions

0 votes
0 answers

Hello, I'm curious again... In this post: Lync Fails when Line URI is used its mentioned that because Adaxes uses PowerShell v2, and the Lync module from Microsoft ... scripts. How then, does Adaxes go about enabling and disabling users for Lync? Thanks.

asked Jan 27, 2016 by EgotisticalGiraffe (350 points)
0 votes
1 answer

I tried searching and looking through the script repo but I coun't find what I was looking for. Is there a script I can use with "If PowerShell scripts returns true" ... want to run a scheduled job only on mailboxes that are NOT Shared Mailboxes. Thank you,

asked Sep 26, 2022 by hgletifer (1.3k points)
0 votes
1 answer

My company is having 3 types of employess agents, employee and contractors. while user creation in adaxes i want to keep Manager, department and job title mandatory and I ... agent I can't create the user because i kept mandatory for manager and department.

asked Oct 27, 2021 by siddu (40 points)
0 votes
1 answer

Is is possible to have complex conditions or groups f conditions in business rules? For example, We want to send for approval if any of these attributes are updated AND it ... one attribute changed. Any suggestions on how to accomplish what I am looking to do?

asked Mar 10, 2021 by techg (320 points)
0 votes
1 answer

I am trying to send a $context.logmessage from a condition script in a Scheduled Task but I get nothing in the log. Is this not possible? Morten A. Steien

asked Jul 20, 2020 by Morten A. Steien (300 points)
3,326 questions
3,026 answers
7,727 comments
544,678 users