To attract the users registered in Active Directory

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 22, 2013
Company:

There is one feature that we want to offer our customers

in SmallBusiness application.

For example, available in many users registered in Active Directory.

By our application, which is active from those users automatically get

loaded into 1C database.

Then periodically active/deactive control're done.(synchronization)

I'd appreciate if anyone can help.

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Veli.

You can grant an access to infobase through Operating system authentication. This allows to use user names in domain. Please see an example:

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 22, 2013
Company:

First of all thank you for your response.

 We can use the method you describe.

 But the procedure in example, will have to repeat for each user.

 So, is it possible to add all the users en masse?

 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

You can create a data processor or web service or use COM object for that. See examples in Users subsystem of 1C:Subsystems Library.

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Oct 30, 2013
Company:

You need some of this:

Code
Function ReceiveDomainUsers(DomainName, GroupName)
   
   Result = New Array();
   objNameSpace = "";
   Try
      objNameSpace =  GetCOMObject("WinNT://" + TrimAll(DomainName) + "/" 
          + TrimAll(GroupName) +", Group");
      For each item in objNameSpace.Members() Do 
           Result.Add(Item.Name);
        EndDo;
     Except
        Result.Clear();
     EndTry;
     
     Return Result;
      
      
EndFunction

Yes?
<deleted as rules violation> ©

 
#6
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 22, 2013
Company:

Thanks both of you...

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.