What is the max size (number of characters) that a String Custom Attribute can hold on Active Directory B2C?
The maximum length for a String property is 256 characters.
For more information, see Directory schema extensions | Graph API concepts.
Related
I am using Microsoft graph API and using 'users' resource. Endpoint is https://graph.microsoft.com/v1.0/users. I am able to create user and update user's related field. Now I am trying to remove "mobilephone" number so, I sent empty string as a request info. but I am getting the following error.
Invalid value specified for property 'mobilePhone' of resource 'User'. "The mobilePhone should be between 1 and 64 characters.
Can I set empty string value to that field? How can I remove that field's value?
phoneNumber.replaceAll("[\\s\\-()]");
The regular expression defines a character class consisting of any whitespace character (\s, which is escaped as \\s because we're passing in a String)
Check String.replaceAll(String, String).
I am trying to create a user with the Graph API.
I experienced that the maximal length of a givenName can be 65 characters.
When I'm trying with a longer value I get a Bad Request response with error CODE "InvalidLength".
I would like to have a limit of 100 characters for the name.
Is it possible to override the maximum length for the givenName attribute?
I'm calling the API with such a request:
HTTP POST graph.windows.net/***.onmicrosoft.com/users
I have confirmed with Azure support engineer, we can not override the maximum length for the givenName attribute. And 64 characters for the name should be enough.
If you must use an attribute with the length 100 characters or more. You can use extension attributes.
Reference:
https://learn.microsoft.com/en-us/powershell/azure/active-directory/using-extension-attributes-sample?view=azureadps-2.0
In order to automatically index Azure Storage blobs with Azure Search, an index need to have one of its fields as a unique "key". Azure docs say: "There can only be one key field in the index. It has to be a string field. This field represents the unique identifier for each document stored with the index."
My question is: what is the best unique key for a blob? It cannot be a blob path or name, since "/" and "." cannot be in the "key" value. Shall I assign a customized property to every blob after I upload it to Azure Storage?
What would be the best way to do it? Is anyone here has experience with that?
Based on this link, you could use metadata_storage_path attribute (which represents full blob path and thus unique) as key field. Again based on the documentation, you should use base64Encode function to convert that data into Base64 encoded string to avoid invalid characters in the key name field value.
From the documentation link (please see section titled Defining document keys and field mappings):
metadata_storage_path - using the full path ensures uniqueness, but
the path definitely contains / characters that are invalid in a
document key. As above, you have the option of encoding the keys using
the base64Encode function.
What is the max size of a custom user attribute in KeyCloak? The official doc only describes how to create such attributes. If the size is limmited to 255 characters as default size of the string in a database then is there an ability to configure this size not modifying the source code?
Keycloak's attribute values maximum length is defined by its backend storage. The default setup uses PostgreSQL. Custom user attributes are stored in user_attribute table, which has value of type varchar(255).
You may want to change the field type to text.
Please make sure to backup your database first.
ALTER TABLE user_attribute ALTER COLUMN value TYPE TEXT;
We added the department number from AD to sharepoint. This property is multi valued in AD, and its multivalue in sharepoint.
My user profile screenshot:
http://screencast.com/t/e9xaZMyJJ2
Then in the CSWP, I want to filter by this value, please check here:
http://screencast.com/t/rlP95vrYRB3E
If I check the TEST, its using a GUID instead of the 613 code
http://screencast.com/t/ASltLUsIP
I am totally clueless.!! any idea?
Mapped property screenshot here:
http://screencast.com/t/gLXs2ZIR
In your user profile the department number is stored as a 'term' using a managed metadata field.
It's important to know that a 'term' can be translated or you can even define synonyms.
When using managed metadata in search, search will use the id (=a guid) of the term instead of the actual text ('613').
Since it ignores the text (and uses the id of the term), this makes it possible for search to find your term in any language or synonyms.
In your case translation of '613' is not really applicable but imagine that your department was a text instead of a number.
When searching on the term 'HR', search could return all the items with 'HR' but also the ones with 'personeelsdienst' (HR in Dutch).