sharepoint online – Programmatically remove external user access to a folder / document in a document library

Here is the script. Not tested You can also add subpages in another foreach.

string WebUrl = "https://company.sharepoint.com/sites/web";
string UserLoginName = "i: 0 # .f | membership | name.lastname_domain.com#EXT#@microsoft.com";

public static void RemoveUserPermissions (String SiteUrl, String UserLoginName)
{
using (var ctx = new ClientContext (SiteUrl))
{
var Web = ctx.Web;
var Lists = Web.Lists;
ctx.Load (ctx.Web);
ctx.Load (lists);
ctx.ExecuteQuery ();

Console.WriteLine (string.Format ("Remove user {0} from site: {1}", UserLoginName, SiteUrl));
var User = Web.SiteUsers.GetByLoginName (UserLoginName);
Web.RoleAssignments.GetByPrincipal (User) .DeleteObject ();
ctx.ExecuteQuery ();

foreach (var list in lists)
{
var UniqueListPerm = List.HasUniqueRoleAssignments;
ctx.Load (UniqueListPerm);
ctx.ExecuteQuery ();
if (UniqueListPerm)
{
Console.WriteLine (string.Format ("Remove a user from the list or library: {0}", UserLoginName, List.Title));
List.RoleAssignments.GetByPrincipal (User) .DeleteObject ();
ctx.ExecuteQuery ();
}

CamlQuery camlQuery = new CamlQuery ();
camlQuery.ViewXml = "";

var Items = list.GetItems (camlQuery);
ctx.Load (elements);
ctx.ExecuteQuery ();
foreach (var article in articles)
{
var UniqueItemPerm = Item.HasUniqueRoleAssignments;
ctx.Load (UniqueItemPerm);
ctx.ExecuteQuery ();

if (UniqueItemPerm)
{
Console.WriteLine (string.Format ("Removing a user from library {0} and item: {1}", List.Title, Item.Id));
Item.RoleAssignments.GetByPrincipal (User) .DeleteObject ();
ctx.ExecuteQuery ();
}
}
}
}
}

How do I force a selection of items for a particular user / database line?

I have a database that allows a company to register, then the company's user can register individual "user" accounts.

The company administrator (who sets up the company account) can log in with a password. However, the user accounts he creates are assigned a smart card based on a smart card serial number.

However, this works, but I would like to restrict the selection of smart cards to those issued for the selected "company".

Currently I have a form with which I can create a series of smart cards.

I have a drop-down list for the user that allows me to select a smart card. However, all available chip cards that I have created are displayed.

When would it be best to get seats, and how best to ensure that only a set of smart cards is available when a corporate administrator creates individual accounts?

I've uploaded a picture of my current theme and I'm currently using Microsoft Access for Concept Design, but I'll switch to SQL and use asp.net.

Thank you in advance.Enter the image description here
Stephen

Use a variable in the connection string for a portion of the database name so that it does not need to be hard-coded for each user

My program uses a database called (County Hunter – K8EMS.mdb) on my computer. I want to use a variable that a user can type on their screen and select the DB to search on their computer (County Hunter – "Variable" .mdb). Since each user has a different call, the variable continues.

This database is created by another program used by County Hunter. I just want to search a table in this database to see if a field is NULL or in use. I have an input text box on the screen so they can type in their call, and I want to use that input to finish naming the database for the search, so hard-coding and compiling is not required for every user.

Any ideas

User – I need help with logging in

I am above my head. I work for a company that recently had to lay off a few employees. One of these people was the web developer. I've worked on WordPress sites before, but never a site created with Drupal.

The developer provided:
ssh
mysql
drupal admin

I can access the CPanel. However, if I go to / admin of the site, it says "You do not have permission to access this page."

What am I doing wrong? I do not know how to get into the backend of the website to make updates. Is there any additional information I need?

I would be very happy about any help.

User Search – What are some advanced UX Competitor Analysis techniques?

What are some advanced techniques of UX competitor analysis and how many competitors need to be analyzed to get relevant results and get enough data to build a solid product? How complex should it be? My main concern is to create an infinite list of data that is difficult to interpret.

According to Nielsen Norman Group's "User Experience Careers" survey report, 61% of UX experts prefer competitive analysis for their projects. The benefits of this kind of analysis are obvious, but there will be few resources for the complexity of this research and how to find information that really matters.

In addition to unique features, how do you recognize the loyalty and commitment of users in our competitors' apps and see if their approach really works?

How can you use this method when your product needs to be the first on the market, not just in a small niche and even though the industry is in a relatively new field of activity?

hang – Mojave freezes every 25 seconds for a fraction of a second when a second user is logged in

My MacBook Pro 2016 Mojave Touchbar freezes every 20 to 30 seconds for a fraction of a second if another user is logged in to the operating system.

However, the other account will not run any apps or suspicious processes.
The Console.app does not show anything during the tiny freeze.

I see a lot of users complaining about freezing the cursor, but on my laptop the whole screen, the keyboard, and the mouse freeze.

I do not use a second monitor or other accessories. Only the laptop uses the touchpad as a mouse and no external mouse.

The problem does not occur with a logged user.

Is there any indication of this problem?

Accessibility – Recheck User Scalable = No – User Experience Stack Exchange

To achieve the effect of resizing for mobile devices, I have only used so far Width = device width, start scale = 1 That did not work out a problem.

I discovered recently user scalable = no as an option for the meta viewport. At first I thought it was an abbreviation for the attitude maximum width = 1, minimum width = 1however, it comes along in my viewa big advantage:

That allows them [the web browser] To eliminate the dreaded 300 ms delay on touch events that the browser needs to wait to see if your single touch is a double touch.

Brilliant, I thought. Some basic tests on my and some fellow cell phones actually seem to pick up the delay of 300 ms, leading to a much faster feel.

Reading in scalable by the user Some more rings. The general consensus seems to be that along with it maximum / minimum widthis "harmful" to accessibility. Some excerpts from articles or written contributions this year:

"And although initial scale = 1 is quite useful, the maximum scale is bad news for accessibility."

"Mostly these harmful explanations are absolutely not necessary: Maximum scale = 1, scalable by the user = no"

What interests me is that both these references refer to two or three year old articles as well as the respective arguments:

http://a11yproject.com/posts/never-use-maximum-scale/

Setting maximum-scale = 1.0 disables the feature to use pinch zoom on mobile devices, forcing users to view your page in a specific way.

http://blog.javierusobiaga.com/stop-using-the-viewport-tag-until-you-know-ho

[…] However, there are many cases where the user may need to zoom in: small font (at least for the needs of the user), checking details on a photo, etc

and

This parameter removes the ability to zoom in or out, and is even worse than the maximum scale. If there is a very special reason to use them (for example, you are programming a web application and you need to avoid increasing the form input)

While I understand some of the concerns raised, I wonder if some of the arguments refer to things that are not or should not be a problem.

For example, if it is alleged that the ability to zoom input fields is eliminated, one could argue that if a user needs to enlarge form fields on a mobile-optimized website, there is another problem that should be fully resolved by users to be asked to enlarge in the first place.

The font size that I can accept is a problem, although a workaround could be to include font size controls (used to display them more often).

That's possible in that sense user scalable = no (or max / min width) is not quite as horrible as it sounds, and with some thought / planning in terms of accessibility, could it be safe to use it and take advantage of the benefits it brings?

For a fair argument and a small confession, I'm probably thinking a lot more about mobile phone sizes than about tablet sizes. For mobile phones, I feel that things are magnified often enough (most things are set to only 100% width), the same is not always true for tablets I admit. I also do not suffer from anything that interferes with my accessibility, so I'm probably naive about some of the issues that other people face.

User Behavior – UX registration is unfortunate

The "more" icon is OK, IMO, but it lacks context. Why may users proceed without registration? How is it possible for you to receive money without completing the registration process?

At the moment I assume that it is about money waiting to be collected. Without more context I would classify the missing information as critical and nothing else is more important. In this case, a simple passport is easily overlooked. Especially with certain color-blind users. Many will miss the difference between red and green, so your color scheme will fail there.

I would suggest displaying a warning message that explains the problem and why action is required when the user opens the app and does not allow the user to take any further action until the required information is entered.