unable create ondrive with csom - provisioning

I create my users via code with csom since months. I assign them a license and create one drive to fill with a structure of folders and shares points. It worked well, but in recent weeks provisioning onedrive stops working. This means that the command Csom CreatePersonalSiteEnqueueBulk is executed without error, however, the users onedrive is not done and then it is impossible to create folders.
If i log onto office 365 with a user account and create is ondrive i can use csom code to create folder and so on.
Here is the code executed without error. (48h after onedrive is not create)
_context.AuthenticationMode = ClientAuthenticationMode.Default;
_context.Credentials = new SharePointOnlineCredentials (Email, GetSecurePassword);
ProfileLoader _profileLoader = ProfileLoader.GetProfileLoader (_context);
_profileLoader.CreatePersonalSiteEnqueueBulk (emailIDs);
_profileLoader.Context.ExecuteQuery ();
The questions are:
Where can you follow the requests put in queue for creating onedrives in Office 365 administration interface ?
Does the methode change ?
Can we use a parameter in office 365 administration interface to force creation of user onedrive when user account is created in in Office 365?
Is there a comdlet to create one drive ?
thank you
Sly

Related

Windows Share Permissions for Domain Admins not working

I'm setting up a new share that I've enabled enumerated access on. I'm looking to limit people access to files on a certain folder. I've setup other folders that restrict access unless your in a security group. This folder thats giving me trouble was copied over from another network share. When I create a folder from scratch everything works fine so I'm curious if thats whats giving me issues.
The folder I'm trying to access is
x:/Limerock/Projects/"Project Name"
If I go into the security tab and check my effective access it says that I have full control:
The user I'm signed into is joe.jankowiak which is part of the Domain Admins security group. Domain Admins owns all the folders in above this and has full control.
When trying to enter the folder it tells me I need to request permission. I'm an admin so it goes through and adds "joe.jankowiak" to the full control list in the security permissions.
Why is it not taking my domain admin credentials to enter this folder? I'm seeing other weird behavior such as it saying "Unable to display current owner." and "You must have read permissions to view the properties of this object". Clicking continue lets me see it.
Everything looks right, I've setup 6 other new folders in the exact same manner and they work fine. I've signed in and out many times but it hasn't fixed it. Weird enough, another computer I signed into lets me access the folder just fine. Is there a way to reload file permissions since logging in/out doesn't seem to do it. Is there a command like gpupdate that I should run?
I have seen this before andyou might need to do the following operations in order:
-Replace Ownership on the folder and replace all child object ownership too=>apply or OK
-Close the security properties and re-open it again
-Add Domain Admins as full control and Replace all child object permissions... =>apply/OK
That should do it

Dynamics CRM 365: action was not created properly

I'm trying to create an action in Dynamics CRM 365.
I can see it on Plugin Registration Tool (as a message), but when I'm trying to call it, it says:
Resource not found for the segment ...
then I looked it up at the Metadata and I saw that the action was created only with its prefix as new_
I tried below steps:
iisreset
crm services restart
This must be an intermittent Product issue. IISRESET or Async services restart won't help in your case.
Also you didn't mention where you checked the metadata or how/where you are calling this Action.
Btw, only for Actions, CRM is creating dupe entries in Processes. Check this in Adv.Find to verify if you have multiple versions of same Action.
Do these steps:
1. Check the exact Schema name (new_DeleteThisAction or whatever case sensitive name) & call it in webapi, this should work
2. Idenify the dupes if any & delete it
3. Please deactivate/delete the action & activate/create it again if nothing above helps

Exchange Server 2003 - Register Event Sync - OnSave OnDelete - Exchange Explorer - RegEvent.vbs

I am trying to add an event sync via the wizard in exchange explorer, that comes from the SDK, to the default public folder calendar without success.
Things I am able to do:
I can Use the event wizard on a test folder in the same node as the default calendar and add event syncs to a com+ app I have registered with the system. This works fine, and all our testing is completed.
Things i cannot do:
In exchange explorer i can navigate to the default public calendar but i cannot see any of the items that are added to that folder. In exchange explorer I get a message that says “The Schema or Items is not located at the specified server.” See below. In addition if I right click on the node I do not get options to use a event registration wizard I actually don’t get any options. However on the test node I do.
What I want to do is be able to add an event item to the items node. Also, I have rights on the calendar node as administrator with ownership rights on the folder on the client configuration in exchange system manager.
Can someone please let me know what I should do to get the event sync on this top-level folder? Also, would / should I use the RegEvent script and would I have success with that if there is not success here?
http://ikoios.com/ftp/exchangeerror.png
I think issue is related to Permissions. Try to check it here.

How to solve this error: The permissions granted to user 'COMPUTERNAME\\ASPNET' are insufficient for performing this operation. (rsAccessDenied)

I am trying to integrate the SSRS report to my web page.
The code is as follows:
ReportViewer1.ProcessingMode = rocessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/reportserver");
ReportViewer1.ServerReport.ReportPath = "/Report Project1/Reconciliation";
List<ReportParameter> paramList = new List<ReportParameter>();
paramList.Add(new ReportParameter("StartDate", startdate.ToString(), false));
paramList.Add(new ReportParameter("EndDate", enddate.ToString(), false));
this.ReportViewer1.ServerReport.SetParameters(paramList);
ReportViewer1.Visible = true;
I get this error when I try to run this report:
The permissions granted to user 'COMPUTERNAME\\ASPNET' are insufficient for performing this operation. (rsAccessDenied)"}
System.Exception {Microsoft.Reporting.WebForms.ReportServerException}
Can anyone tell me what I am doing wrong?
To clarify Erikk's answer a little bit.
The particular set of security permissions you want to set to fix this error (there are at least another two types of security settings in Reports Manager) are available in the "security" menu option of the "Properties" tab of the reports folder you are looking at.
Obiously it goes without saying you should not give full permission to the "Everyone" group for the Home folder as this is inherited to all other items and subfolders and open a huge security hole.
You need to give your web app access to your reports. Go to your report manager (http://servername/reports/). I usually just give the whole web server "Browser" rights to the reports.
The account name of your server is usually Domain\servername$. So if you server name is "webserver01" and your domain is Acme, you would give the account Acme\servername$ Browser rights.
I think you could also fix it by disabling anonymous access (in IIS) on the web application you are running the report from, that way reporting services would authenticate using the users credentials instead of the ASPNET account. But that may not be a viable solution for you.
The problem is that your ASP.NET worker process does not have the permissions to do what you want.
Edit this user on the server (MACHINENAME\ASPNET), and give it more permissions (It may need write permissions etc).
You also will need to add MACHINENAME\ASPNET as a user to the SQL database SSRS is working with.

Windows / Active Directory - User / Groups

I'm looking for a way to find a the windows login associated with a specific group. I'm trying to add permissions to a tool that only allows names formatted like:
DOMAIN\USER
DOMAIN\GROUP
I have a list of users in active directory format that I need to add:
ou=group1;ou=group2;ou=group3
I have tried adding DOMAIN\Group1, but I get a 'user not found' error.
P.S. should also be noted that I'm not a Lan admin
Programatically or Manually?
Manually, i prefer AdExplorer, which is a nice Active directory Browser. You just connect to your domain controller and then you can look for the user and see all the details. Of course, you need permissions on the Domain Controller, not sure which though.
Programatically, it depends on your language of couse. On .net, the System.DirectoryServices Namespace is your friend. (I don't have any code examples here unfortunately)
For Active Directory, I'm not really an expert apart from how to query it, but here are two links I found useful:
http://www.computerperformance.co.uk/Logon/LDAP_attributes_active_directory.htm
http://en.wikipedia.org/wiki/Active_Directory (General stuff about the Structure of AD)
You need to go to the Active Directory Users Snap In after logging in as a domain admin on the machine:
Go to start --> run and type in mmc.
In the MMC console go to File -->
Add/Remove Snap-In Click Add Select
Active Directory Users and Computers and select Add.
Hit Close and then hit OK.
From here you can expand the domain tree and search (by right-clicking on the domain name).
You may not need special privileges to view the contents of the Active Directory domain, especially if you are logged in on that domain. It is worth a shot to see how far you can get.
When you search for someone, you can select the columns from View --> Choose Columns. This should help you search for the person or group you are looking for.
You do not need domain admin rights to look at the active directory. By default, any (authenticated?) user can read the information that you need from the directory.
If that wasn't the case, for example, a computer (which has an associated account as well) could not verify the account and password of its user.
You only need admin rights to change the contents of the directory.
I think it is possible to set more restricted permissions, but that's not likely the case.
OU is an Organizational Unit (sort of like a Subfolder in Explorer), not a Group, Hence group1, 2 and 3 are not actually groups.
You are looking for the DN Attribute, also called "distinguishedName". You can simply use DOMAIN\DN once you have that.
Edit: For groups, the CN (Common Name) could also work.
The full string from Active Directory normally looks like this:
cn=Username,cn=Users,dc=DomainName,dc=com
(Can be longer or shorter, but the important bit is that the "ou" part is worthless for what you're trying to achieve.
Well, AdExplorer runs on your Local Workstation (which is why I prefer it) and I believe that most users have read access to AD anyway because that's actually required for stuff to work, but I'm not sure about that.
Install the "Windows Support Tools" that is on the Windows Server CD (CD 1 if it's Windows 2003 R2). If your CD/DVD drive is D: then it will be in D:\Support\Tools\SuppTools.msi
This gives you a couple of additional tools to "get at" AD:
LDP.EXE - good for reading information in AD, but the UI kinda stinks.
ADSI Edit - another snap-in for MMC.EXE that you can both browse AD with and get to all those pesky AD attributes you're looking for.
You can install these tools on your local workstation and access AD from there without domain admin privileges. If you can log on to the domain, you can at least query/read AD for this information.
Thanks adeel825 & Michael Stum.
My problem is, though, i'm in a big corporation and do not have access to log in as the domain admin nor to view the active directory, so i guess my solution is to try and get that level of access.

Resources