this is my first post in StackOverflow, I hope I am doing it well, I am beginig with a bit of lowcode/nocode development.
My first task assigned is to create a SharePoint List fed by Office 365 Users, or Graph, or the same Sharepoint Users profile.
But I need to add extra custom attributes as the skills or an about me, the idea is to make a Power Apps Canvas where the user can fill this up and also change their User Profile.
If you can give me a hand with an start point I will appreciate it a lot.
Thanks in advance.
I got my answer thanks to one user in the Power Apps Community forums
Link here
At the end I used the Office 365 Users connector with Power Apps Canvas, this and the Sharepoint Connector, we created a ForALl to loop into the users, and with a comparison with the Mail column we could update the records and create them in case they are not, else create them.
Patch(
'Org',
ForAll(Filter(Office365Users.SearchUser(), AccountEnabled=true),
With({ _rec: LookUp('Org', MailColumn = Mail) },
{
ID: _rec.ID,
Title: DisplayName,
MailColumn: Mail,
JobTitleColumn: JobTitle,
DepartmentColumn: Department,
Manager: Office365Users.Manager(Id).DisplayName
}
)
Thank you anyway!
Related
I need a users calendar to have the property "allowedOnlineMeetingProviders" contain "teamsForBusiness". I am not able to add the calendar via the create user call (graph api) so I had to subsequently update the existing calendar but it wont let me update the property (only name seems to update). Anyone know how I can programmatically set this property?
Its because its not expected workflow ~ Microsofts response:
Hope you are doing good.
Apologies for the delayed response, I have tried to gather more details on this behavior internally, but unfortunately since this is an existing behavior in the system i.e. by design we can say since the new user needs to have some kind of interaction with the MS teams initially.
Unfortunately, we aren't much help on this scenario from MS graph api standpoint.
We request you to provide your feedback/ideas/suggestion https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform
We regret not being helpful to you on this case since this is a known issue.
Kindly let us know if you have any queries.
Update (08.07.2015):
I tried WireShark on one WFE during a peoplepicker request.
The disabled accounts are clearly shown in the LDAP AD (GC) response.
SharePoint 2013 still doesn't show the disabled account in the GUI
Conclusion: SharePoint does filter out "UserAccountControl = 514" ({if}?) somewhere else in the code (xxx.dll?). I don't know why Microsoft changed the behaviour from 2007/2010 to 2013.
Can i change this??? Is it configurable???
Dear StackOverFlow Community
We have SharePoint 2013 SP1 and CU Sept. 2014.
Problem:
Since last year we are filtering in "AD Import" disabled Users out. We didn't need them in our Intranet environment. But now we are building a collaboration platform. And some poeple need to authorise disabled users for their workspaces. (Site Collection)
The idea was, to use the people picker to find all (enabled and disabled) users and thats it. But i can't find any disabled users with people picker.
The question is:
Why does it not work? (It should because many SharePoint Administrators claims to see the disabled users over people picker)
I tried to enforce the people picker to find explicit users with (userAccountControl:1.2.840.113556.1.4.803:=2). (i set just the filter not the query)
$wa.PeoplePickerSettings.ActiveDirectoryCustomFilter = "(&(objectCategory=person)(objectClass=user)(! (userAccountControl:1.2.840.113556.1.4.803:=2))"
Still doesen't find any disabled users. Even with $null value as you can see below:
PS C:\Windows\system32> $wa.PeoplePickerSettings
SearchActiveDirectoryDomains : {}
ActiveDirectoryCustomQuery :
ActiveDirectoryCustomFilter :
OnlySearchWithinSiteCollection : False
PeopleEditorOnlyResolveWithinSiteCollection : False
DistributionListSearchDomains : {}
ActiveDirectorySearchTimeout : 00:00:30
NoWindowsAccountsForNonWindowsAuthenticationMode : True
ServiceAccountDirectoryPaths : {}
ReferralChasingOption : None
ActiveDirectoryRestrictIsolatedNameLevel : False
AllowLocalAccount : True
ShowUserInfoListSuggestionsInClaimsMode : True
UpgradedPersistedProperties : {}
PS C:\Windows\system32>
Observation:
It seems like it can find Users who were in the "User List" on the Site Collection (but only over email address). Users who perhaps were logged once on the WebApplication and now are disabled. In my understanding, the people picker does:
Check the UserList on the site collection
Check direct in the AD (or Global Catalog)
We still have a 2007 environment which has no problem with people picker to find any disabled users. Why does SP2013 make so much trouble?
I even tried to import every user (enabled and disabled) in our test lab to find out, if it has something to do with the LDAP filtering in the AD Import. But it wasn't much help for this situation. The disabled users are now imported, but people picker still doesent find any disabled users.
I tried to find someone with the same problem --> https://sharepoint.stackexchange.com/questions/80032/unable-to-get-disabled-ad-accounts-in-people-picker (no solution here...)
I posted the same question in Technet --> https://social.technet.microsoft.com/Forums/en-US/75272928-6370-4d8d-9b8f-ce5ec6642407/peoplepicker-cant-find-disabled-ad-users-514?forum=sharepointgeneral
I just want to know how I can find disabled users in people picker. This should be the normal case. As long as you don't set custom filters to it, people picker should find every user account in the specific domain. But in my case it doesn't.
We just have one domain and not multidomain environment.
I was in contact with Microsoft Support. This behaviour is "by design". So theres only one workaround:
create a custom claims provider for peoplepicker
https://technet.microsoft.com/en-us/library/gg602072%28v=office.15%29.aspx?f=255&MSPPError=-2147217396
Greets
SharePoint_Dude
I have a task that to allow a user to add his favorite links of any website and then they are stored in SharePoint. Then they will be shown in a panel called "My Bookmarks".
I have a solution that creates a list for all users with a "CreatedBy" field but I think it is slow to load. Do you have any solution, a custom solution or a OOTB solution?
you could use the 'links' list that is ootb. if you are wanting something that is cross sites , and collections you will need to create a custom webpart. with that you will need to either hit a sql table or sp list.... for example -> id, userid, sitename, url. so you'll have to get the currently logged in user. so something like -> select * from tableName where #currentUser = userid......
I am creating a form within InfoPath which is to be integrated into a SharePoint 2007 Portal. Within this form there will be a textfield into which a user can enter the Name of a Person.
How can I validate whether this Person exists or not?
Instead of validating the user, is there a way to fill a dropdown List with all usernames of the portal? (which of cause would be users from the Active Directory)
I haven't done this specifically, so there may be a better way, but I've been pulling a lot of data out of SharePoint and into an InfoPath Form (deployed to a SharePoint forms library and accessible through SharePoint Forms Service with MOSS Enterprise) and also going the other way using the SharePoint web services - very quick to use, and the person web service is right there.
Have you tried looking at the Contact Selector (an ActiveX control). Here is a MSDN-article describing how to add it as a control in InfoPath and this one describes how to make it work.
I have been using it in the majority of my infopath projects and it works flawlessly - also for browser-enabled forms.
When doing something similar in an ASP.NET application, I've used the Sharepoint search and searched the "People" Scope for the specific user. You can also search across profile information so you can pull back everyone with a certain Job Title, or in a specific Department.
I don't validate a person's existance, but I do determine a person's full name using their login and SharePoint. You should be able to modify this code for your purposes, it is below. For it to function you need a data connection in your InfoPath document called GetUsersFromSP. Configured as follows:
Location is - http://njintranet2/_vti_bin/usergroup.asmx?WSDL
Operation is – GetUserColectionFromSite (last one on list)
Automatically retrieve data when form is opened should be checked.
string ADName = System.Environment.UserName;
IXMLDOMDocument3 UserQuery = (IXMLDOMDocument3)thisXDocument.GetDOM("GetUsersFromSP");
UserQuery.setProperty("SelectionNamespaces",
"xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" " +
"xmlns:tns=\"http://schemas.microsoft.com/sharepoint/soap/directory/\"");
((WebServiceAdapterObject)thisXDocument.DataAdapters["GetUsersFromSP"]).Query();
IXMLDOMNode Users = UserQuery.selectSingleNode("//dfs:myFields/dfs:dataFields/tns:GetUserCollectionFromSiteResponse/tns:GetUserCollectionFromSiteResult/tns:GetUserCollectionFromSite/tns:Users");
foreach (IXMLDOMNode current in Users.selectNodes("tns:User"))
{
string Login = current.attributes.getNamedItem("LoginName").text;
Login = Login.ToUpper();
if (Login.EndsWith(ADName.ToUpper()))
{
thisXDocument.DOM.selectSingleNode("my:root/my:config/my:User").text = current.attributes.getNamedItem("Name").text;
break;
}
}
Use this control:
http://blogs.msdn.com/infopath/archive/2007/02/28/using-the-contact-selector-control.aspx
Or if you want to build your own validator, you'll need to query the SharePoint profile database. I'd recommend this over querying AD directly. There's lots of articles online about working with the profile database.
Have a look at this Link, it explains how to populate a dropdown with the SharePoint Users
http://blueinfopath.blogspot.com/2008/10/how-to-populate-list-with-sharepoint.html
I you want to validate,
- Make a textbox
- Add a Button, name it ValidateUser
- Create a Receive Connection to the ......
- Att Rules to the ValidateUser
- Add the textbox to the field AccountName in the Secondary Datasource
- Execute the receive connection
- Get the value of the field Value with filter Name="PreferredName"
This work for Infopath Form Services
Test it and enter the UserLogin into the textbox and click on the Validate Button
Frederik
I am looking to get the GUID of the Central Administration page in SharePoint but not sure how I can get it, any help would be appreciated.
I need to be able to get this dynamically using the API / Object Model
Thanks
Phill
Try
Microsoft.SharePoint.Administration.SPAdministrationWebApplication
SPAdministrationWebApplication adminWebApp = (SPAdministrationWebApplication)SPWebApplication.Lookup(myUri);
SPAdministrationWebApplication.Local
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spadministrationwebapplication.aspx