Setting user-agent

Consider a scenario where post request is completed successfully for a request with specific user-agent . I want to create a html poc for the same with the respective user-agent. If it is possible how can it be done.

I read that user-agent is not in the forbidden list as per mozilla documentation : https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name . So I hope it can be achieved

Apply persistant default setting to SPFx webpart

Currently we have configured a setting our custom SPFx webpart’s manifest and applied it as a property in our code. This property is applied and works properly when the webpart is applied to a page of our SharePoint Online installations, however the issue is that when reinstalling our webpart on SharePoint sites where it already exists the webpart must be re-applied and reconfigured. The desired behavior is to have this property automatically applied to existing instances of the webpart as well as initially enabled instances. Is the experienced behavior of the manifest applied value and property as intended by Microsoft? If so, should we create an appSettings file and reference it in our webpart’s config.json and code, or is there anyother way to do this (aside from just “hard-coding” the value in the webpart’s code)? Thanks in advance.

Setting Group Permissions

I have many users and two groups. Some of them are member of group1 and others are member of group2. I want to allow group1 to access all directories, and I want to allow group2 to access to specific directories. I did some research but I could not fix it. How can I do that?

Thanks.

Setting up DNS – What did I do wrong?

I attempted to test a name server I am trying to set-up but received the wrong IP Address for my DNS and error message: Host openbsd.server not found: 3(NXDOMAIN).

I was under the impression that I configured my IP for my VMs through zone file names and etcs but obviously not.

I read a similar post, Bind9 : Host dns.lan not found: 3(NXDOMAIN) and they suggested to point my resolv.conf to start with the IP I set in zone. Which was already set in resolv.conf. Am I misinterpreting what he said?

Please help!

What is the correct way of setting and then differentiating between paid and free user in Firebase / Firestore?

I am developing a mobile application that will have both free and paid versions.

The way I see how I could differentiate between what is a paid and free user is to set a property isPaid on their respective documents.

What I want to understand is how to set the isPaid property on user‘s document securely.

One option that I see is after successful payment directly access the document that belongs to the user and change the isPaid property. All of that would be done on the mobile application side.

Another option could be to use the Firebase Functions and trigger one to set the correct value on the isPaid property for the given user.

But what could prevent a malicious user from setting these properties directly OR how to ensure that there actually is a pending subscription from Google or Apple and the user really is a paying one.

Currently my Firestore structure looks like this:

{   "users": [     {          "uid": "123123123123123",         "name":"Bob",         "isPaid": false,         "messages": [             {                 "messageText":"hello"             }         ]     },     {          "uid": "456456456456456",         "name":"Alice",         "isPaid": true,         "messages": [             {                 "messageText":"hey"             }         ]     },      ... } 

Thanks!

Setting up a search crawler for a remote file server

We have a SharePoint Server 2013 farm and a file server at a different location. We want to crawl the file server, in order to provide index data to the SharePoint search. The search range has been extended accordingly, and searching works fine. However there is way too much traffic between farm and file server when the crawler is indexing the file share.

What is the recommended setup for this kind of delocalization ? It seems to be necessary to set up the crawler at the site where the file server is, and either access the index remotely, or transmit just the indexing results to the farm site.

REST API for setting Multiple users people picker in SharePoint

I inherited a custom application from another developer who used REST API to create list items. Now the requirement is to add a multiple users people picker to the form.

I am able to add a multiple people picker to the form. However when I am trying to save I get this error “A node of type ‘startArray’ was read from the JSON reader when trying to read a value of property; however, a ‘PrimitiveValue’ or ‘StartObeject’ node was expected”

I understood from other blogs that the syntax should be “RequestorId”: { “results”: [106,111] }. But my problem in my code is to have this value in a variable and then push into an array and pass it into the function which does the creation of an item. What I am struggling here is the syntax for that variable.

Should I include the curly brackets as well {}

var    colsAndValues = [];   var   peoplepicker1 = SPClientPeoplePicker.SPClientPeoplePickerDict.elvlglENotification_TopSpan;                              if (peoplepicker1 != null) {                       var users = peoplepicker1.GetAllUserInfo();                         if (users.length == 0) {                        //alert("No users");                     //    Mutiple User/Lookup value format:   {FieldName: {"results": [LookupIdVal1,LookupIdVal2] }}                          colsAndValues.push("RequestorId");                         var UserValue =  "'results'"+":[0]";// Not sure if this is right syntax. Here is where I feel my problem is                          colsAndValues.push(UserValue);                     }  

//Function for creating the list item

var item = {                     "__metadata": { "type": itemType }                 };                 for(var i = 0; i < colsAndValues.length; i++) {                     if (i % 2 !== 0) {                          item[colsAndValues[i-1]] = colsAndValues[i];                     }                 }                 var siteurl = _spPageContextInfo.webAbsoluteUrl;                  jQuery.ajax({                     url: siteurl + "/_api/web/lists/getbytitle('" + listName + "')/items",                     type: "POST",                     contentType: "application/json;odata=verbose",                     data: JSON.stringify(item),                     headers: {                         "Accept": "application/json;odata=verbose",                         "X-RequestDigest": jQuery("#__REQUESTDIGEST").val()                     },  

initramfs.conf syntax? Setting up encrypted system

I’m setting up an encrypted system, and I’m having troubling with mkinitramfs. I’m using the archlinux encryption guide, which specifies what hooks I need to add to initramfs.conf, but the format I have the line in is, I believe, specifically for mkinitcpio.conf.

HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt filesystems fsck)"

It gives me a syntax error with ‘”(” unexpected’. Removing the brackets returns “excess arguments”.

What is the correct syntax for initramfs.conf?