Monday 22 June 2020

Disable or Enable Outlook Sync for G Suite Users

Or, How to disable or enable MS Outlook email synchronization for G Suite users?

Or, How to disable or enable GSSMO synchronization for G Suite users

Or, OU or Tenant level control of GSSMO Synchronization (enable or disable)

 

Descriptions: You may be in a situation where you may need to disable or enable the email synchronization to outlook application for all or some group of your G Suite users.

Few folks may need to have outlook sync enabled for their users to give them feasibility to access emails from outlook app as it is more friendly to use, whereas, few folks may need to disable the email sync for their G Suite users to enforce the usage of online Gmail platform for various reasons.

A step by step process is being explained in this article to help you to achieve this requirement.

 

Steps: Enable or Disable the outlook sync for G Suite users

Sign in to the Google Admin console

Click on Menu option



Click on Apps > Click on G Suite



Now, Click on Gmail



Click on End User Access


Click G Suite Sync (here you may choose to go with either the root OU or the Sub-OUs you have created specifically for Disabling or Enabling this feature).


Check Mark the Enable G Suite Sync for Microsoft Outlook for my users box to enable outlook email sync or Remove the check mark from Enable G Suite Sync for Microsoft Outlook for my users to disable the outlook email sync.



Click Save.


Cheers, please write me back if you have any query of feedback on this.


Saturday 20 June 2020

Python Dictionaries


Understanding Dictionaries

Dictionary is the most handy data type offered by Python and frequently used when the items are needed to be accessed by special or user defined keys.

Dictionaries are quite similar to the lists in the following ways:

Mutable: Like lists, dictionaries are also mutable,

Can contain any type of data types like lists.


But differ from the lists in the following ways:

Dictionaries do not support numeral indexing like lists do. However, you can access the items with their respective keys.

Keys in dictionaries are of immutable type unlike lists, where keys simply mean the positions of the items.

 

Dictionary as map

Dictionary consists of collection of the key-value pairs. It works as a map data structures in other programming languages. Dictionary maps the value to its associated key.

Restriction with keys

Like list where positions of the items are unique, dictionary keys are also unique and of immutable type.

Creating Dictionary

Dictionary can be created by enclosing the key-value pairs inside curly braces ( { } ) like:

dict = { key:value, key:value, ….}

Creating name of the books with respective author

books_details = {

“Let us C” : “Yashavant Kanetkar”,

“TCR JAVA” : “Herbert Schildt”,

“Design and Analysis of Algorithms” : “Thomas Cormen”,

“Operating Systems” : “Peter Galvin” }

Dictionary can also be created using built-in dict( ) function:

books_details = dict( [

(“Let us C”, “Yashavant Kanetkar”),

(“TCR JAVA”, “Herbert Schildt”),

(“Design and Analysis of Algorithms”,“Thomas Cormen”),

(“Operating Systems”, “Peter Galvin”),

] ) 

Accessing Value with key

books_details[ “let us C”]

'Yashavant Kanetkar'

Referring to a key which is not present in the dictionary, Python raises an exception:

books_details[“ abc”]

 



If you try to use key as mutable type like list, Python raises exception

dict = { [“Python”, “JAVA”, “C”] : “ Programming Languages” }


 

Updating the existing value of the key

books_details[“Operating Systems”] = “Avi Silberschatz”


books_details 

{'Let us C': 'Yashavant Kanetkar', 'TCR JAVA': 'Herbert Schildt', ‘Design and Analysis of Algorithms’ : ‘Thomas Cormen’,‘Operating Systems’ : ‘Avi Silberschatz’ }

Updating is possible because dictionary values are mutable type.