Adding Custom Attributes to an Office 365 User Mailbox alternative of PowerShell - outlook

Adding,Updating Custom Attributes to Office 365 User Mailbox.I know this can be done through PowerShell but is there any API reference or tool is doing this job for bulk users? I am new to this stuff. Any help would be appreciated.
Thanks

If your Identity approach is (Synchronized IDs), your Active Directory onprem is the source of authority, custom attributes could be configured from the on prem application itself or ADSI edit (works but officially not supported by MS!).
https://learn.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnect-get-started-custom
Azure AD connect is the software you need to install, which controls the attribute flow from AD on prem to Azure AD, You can extend the schema in Azure AD with custom attributes added by your organization or other attributes in Active Directory. To use this feature, select Directory Extension attribute sync on the Optional Features page

Related

Dynamics 365 users created using the API are automatically assigned the Salesperson security role

When creating users in Dynamics 365 using the Microsoft CRM SDK, the salesperson security role is automatically assigned. We believe this behavior started recently.
It does not happen when creating users in Dynamics 365 using the UI.
The behavior is documented here for imported user.
The security role can also be added automatically based on assigned license. It is possible to opt out of this. One of our customers had Microsoft do this for their Dynamics environment, but the salesperson role is still added automatically.
This does not happen when creating users in on-premises CRM using the same code. There must be something on the Microsoft Dynamics 365 server side adding this security role.
Is there a way to avoid the automatic security role assignment?
We have a workaround by adding the user to the AAD security group of the Dynamics environment and waiting until the synchronization from AAD to Dynamics 365 creates the user before we add access and update personalia/settings using the API.

Reading/Writing M365 Admin contacts

An administrator for a Microsoft 365 domain can create external contacts that are visible to users within that domain. Those contacts can be seen in the M365 Outlook client under "Directory->All Contacts" or "Directory->Default Global Address list".
I need to use EWS to read and create these contacts. As a first step I'm just trying to read them, using FindFolder, against MsgFolderRoot of a user. Unfortunately the only contact folders that show up are the ones defined for the user in question, not the external contacts created by the Admin. There are several contact folder classes that seem promising, such as "OrganizationalContacts" and "ExternalContacts" but there are no entries in those folders.
I could also use Graph for this if the capability is there. Any help on this problem would be appreciated.
Directory contacts exist in the Directory eg Azure AD or the local AD onPrem neither EWS or Graph can create these type of contacts then only thing automatable that can do that is https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailcontact?view=exchange-ps
For reading Directory contacts the Graph is a better option it has a supportable endpoint via https://learn.microsoft.com/en-us/graph/api/resources/orgcontact?view=graph-rest-1.0. EWS can do this via FindPeople but it's not documented and requires that you know the addressbook guid which isn't available via EWS.

Edit/Create access in Dynamics CRM for non licensed users

We have a scenario where we do not have enough licenses to provide to the users for Dynamics CRM Online. But we need these users to be able to edit/create rows in Appointments and Task tables. We have a license with Admin access. Can this license be shared or used in such a way that users can edit these tables through any other interface say using Power Apps or so? Is there any way to enable them to edit the tables?
What you can do is, get the per-user-per-app license for users so they can use Canvas app and get authenticated using AD SSO.
You can use the Admin service account to do data interactions into Dynamics CRM using MS Flow/Power Automate. Essentially CDS connector will use the licensed CRM admin account in the backend. Honestly I never tried this.
Another user also used HTTP request to use LogicApps to POST the data without license. Reference
PowerApps portals is another option.

How to get roles assigned for an user in Office 365 environment from Powerapps

We are trying to change Button Visibility Based on User Role. Added Custom Security Role, Assigned roles to Users from Dynamics 365 environment .
Custom Security roles
Assigned These roles to Users via Manage Roles option.
Manage User Roles
How can we get Role assigned for CurrentUser in Powerapps Environment? Only 3 attributes(Email,fullName,Image) are available for User() object. Tried using Dynamics 365 Users, Security roles etc into Datasource. Also tried by adding Users entity into Datasource.
Dynamics 365 security roles, users in to datasource
In a classic Dynamics CRM web UI or Model driven PowerApp, we have a choice to write client side form scripting to pull current user’s security roles and manipulate the client controls. We will be using web api or odata & utilize the systemuserrolescollection or SystemUserRolesSet dataset to pull the needed data. Read more
But in Canvas apps, even today we are unable to find this System user roles table in Dynamics 365 connectors. So we have to wait till this is exposed.
Or you can have a SQL replication (maybe Data export service) or custom connector which consume the D365 web api to pull this data.

Create user with sdk from AD in Dynamics CRM '13

I am attempting to create a simple application for creating users in our on-prem Dynamics 2013 CRM installation. Right now, we create a user in AD then go to CRM and import the user by entering the AD username and domain in the CRM username field. We then manually enter the additional user properties. Currently, I have my app creating the AD users but, being new to CRM, I am stumbling about figuring out how to utilize the sdk to add my users in CRM. Also, I wonder if there is a better way to go about this.
Any help or guidance would be greatly appreciated.
Try starting with this from the online MSDN reference:
Sample: Create an on-premises user

Resources